Problem

In this hands-on project, you enable, set, and view disk quotas for the /newmount filesy...

In this hands-on project, you enable, set, and view disk quotas for the /newmount filesystem created earlier.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type chmod 777 /newmount to give all users the ability to create files within the /newmount directory.

3. Switch to a command-line terminal (tty3) by pressing Ctrl+Alt+F3 and log in to the terminal using the user name of user1 and the password of secret.

4. At the command prompt, type touch /newmount/samplefile to create a file in /newmount that is owned by the user user1.

5. Type exit and press Enter to log out of your shell.

6. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2.

7. At the command prompt, type vi /etc/fstab and press Enter. Observe the options for the /newmount filesystem. If your system uses a SATA or SCSI hard disk, change the line that mounts /dev/sda3 to the following: /dev/sda3 /newmount ext4 defaults,usrquota,grpquota 0 0 If your system uses a PATA hard disk, change the line that mounts /dev/hda3 to the following: /dev/hda3 /newmount ext4 defaults,usrquota,grpquota 0 0

8. Save your changes and quit the vi editor.

9. Remount the filesystem as read-write by typing the command mount /newmount –o remount,rw and press Enter.

10. At the command prompt, type touch /newmount/aquota.user and press Enter.

11. At the command prompt, type touch /newmount/aquota.group and press Enter.

12. At the command prompt, type quotacheck -mavug and press Enter. What does this command do? Next, type ls –l /newmount and press Enter. What are the sizes of the aquota.user and aquota.group files? What are these files used for?

13. At the command prompt, type quotaon -avug and press Enter to activate quotas for all partitions that have quota options defined within /etc/fstab.

14. At the command prompt, type edquota –u user1 and press Enter. Are there any quota limits applied to the user user1 by default? Change the value of the soft quota for blocks to 50,000 and the value of the hard quota for blocks to 60,000. Similarly, change the value of the soft quota for inodes to 300 and the value of the hard quota for inodes to 400. How many files and directories can user1 create on this partition? How much space can user1 use in total on this partition?

15. Save your changes and quit the vi editor.

16. At the command prompt, type edquota –u -t and press Enter. Change the time limit for users who extend the soft limit to 5 days for both inodes and blocks.

17. Save your changes and quit the vi editor.

18. At the command prompt, type repquota /newmount and press Enter. Are the quota changes you made for the user user1 visible? How many files has user1 stored on this volume so far?

19. At the command prompt, type quota –u user1 and press Enter. How do the values compare with those from the previous step?

20. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5