Lab Exercise #2: Linux Package Management
CIS 228 - UNIX System Administration
Lab Exercise #2: Adding / Managing User Accounts with disk quotas, creating a DOS filesystem
1) Boot into Fedora
Add user2-5 using graphical method. Add user6-9 using command line “useradd”
Password = “password”.
Review /etc/passwd, /etc/shadow.
2) Add to /etc/fstab: /dev/sdax /home ext3 defaults,usrquota
3) quotacheck –m –c /home
4) Re-boot (shutdown -r now) or re-mount file partition (mount –a) with quotas.
5) Issue mount command, determine file systems with quotas:
Check /etc/mtab: /dev/sdax / ext3 rw,usrquota 0 0
6) quotacheck -vgum /home
7) quotaon -av
8) Set quotas to 1000MB (soft), 2000MB Hard for each user: edquota -u user_id
9) View quotas: quota -u user_id
10) Add to quota startup using book procedure
11) Use fdisk to create a 2GB VFAT partition (also look at at alternate parted command)
fdisk /dev/sda
m …. menu
n …. add partition (+(available size)
l …. list partition types
t b …. set partition type to WIN 95 FAT32
p …. to show results
w …. to write to disk
12) Format the new partition as vfat using the mkfs command
mkfs –t vfat /dev/sdax
13) Mount the partition on /mnt/dos
14) Copy over the contents of /home to /mnt/dos. How?
15) ls –al the contents of /home and /mnt/dos
16) Add /mnt/dos to /etc/fstab as a permanently mounted file system.
Related commands: useradd, quotaon, quotacheck, edquote, fdisk, mkfs, parted
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- linux memory management pdf
- linux memory management ppt
- escience lab 2 answers
- fragments exercise 2 answers
- escience lab exercise 2 answers
- memory management in linux os
- package management system
- package management tool
- 2 ton hvac package unit
- linux power management ppt
- lab 2 answers
- package management software