Linux challenge 3

Make sure all users under "admins" group can run all commands with "sudo" and without entering any password.

Edit the disk quota for the group called "devs". Limit the amount of storage space it can use (not inodes). Set a "soft" limit of "100MB" and a "hard" limit of "500MB" on "/data" partition.

need help

Hi @Unlimited-Contents

Before you can attempt this, you must have successfully created the devs group.

For the first one, you must use the visudo command as root. Now the user bob already has the rights required to do what the question asks, so you simply need to add an admins group entry with the same permissions as bob.

For the second one, establish what device the data directory is mounted on.
cat /etc/mtab | grep '/data'
The first column is the device path
Next, you must run
sudo edquota -g devs
and make the appropriate edits to that device

See Implementing quotas to restrict disk space usage - Linux.com, however all the steps required to enable quotas in the first place are already done in the lab.

1 Like

i am unable to perform the linux challenge 3 , Disk quota limit task , have tried every possible solution , can someone please help ?

Thank you !

Hi @ahmad_au09

We have recently published the solutions to all challenges at GitHub - kodekloudhub/linux-challenges

You should only look there if you’re really stuck!