RedHat RH202 Question Answer
neo user tried by:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
files created successfully. Again neo tried to create file having 70K using following command:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
But he is unable to create the file. Make the user can create the file less then 70K.
Answer and Explanation:
Very Tricky question from redhat. Actually question is giving scenario to you to implement quota to neo user. You should apply the quota to neo user on /home that neo user shouldn’t occupied space more than 70K.
1.vi /etc/fstab
2.touch /home/aquota.userCreating blank quota database file.
3.mount -o remount /home Remounting the /home with updated mount options. You can verify that /home is mounted with usrquota options or not using mount command.
4.quotacheck -u /home Initialization the quota on /home
5.edquota –u neo /home Quota Policy editor
See the snapshot
1 Disk quotas for user neo (uid 500):
2 Filesystem blocks soft hard inodes soft hard
4 /dev/mapper/vo-myvol 2 30 70 1 0 0
Can you set the hard limit 70 and soft limit as you think like 30.