chp 5-8 exam

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Create the /mnt/disk directory Mount the /dey/sdb1 volume to /mnt/disk Mount the /dev/sdb1 volume with the ext3 filesystem

Be aware of the following: o Volumes are mounted to empty directories. o A common place to mount volumes is to a directory inside ofthe fmnt directory. o Use the -t option to specify the file system. Use the following commands to complete this lab: mkdir /mnt/disk mount -t ext3 /dev/sdb1 /mnt/disk Use the mount command to verify that the volume is mounted correctly.

view /etc/passwd

cat view /etc/passwd

Rename the sales group to western_sales_division Create the eastern_sales_division group Remove aespinoza from the western_sales_division group Add aespinoza to the eastern_sales_division group

groupmod -n western_sales_division sales to rename the sales group to westem_saIes_division. groupadd eastem_sales_division to create the eastern_sales_division group. usermod -G eastern_sales_division aespinoza to modify group membership. When you assign aespinoza to the eastern_sales_division group with the usermod -G option, the user account is removed from the western_sales_division group. cat /etc/group or groups username to verify the user account's group membership.

Remove cflynn from the hr group Keep cflynn as a member ofthe it group Keep cflynn as a member ofthe mgmt1 group

groups cflynn to view a list of all groups to which the user belongs. You will see that cflynn currently belongs to the mgmt1, it, and hr secondary groups. Note: The cflynn group is the user's primary group. usermod -G mgmt1,it cflynn to change group membership. To preserve existing group membership, use the usermod -G command listing all groups to which the user must belong. Do not include the primary group name in the list of groups. groups username to verify the user account's group membership.

Make schawla a member ofthe hr group Make schawla a member ofthe mgmt2 Keep schawla in the sales group

groups schawla command to view a list of all groups to which the user belongs. You will see that schawfa currently belongs to the mgmtf and sales group. Note: The schawfa group is the user's primary group. usermod -G mgmt2,hr,mgmt1,sales schawla to change the secondary group membership for the schawla user account cat /etc/group or groups schawla to verify the changes.

Format the /dev/sdb2 volume with the ReiserFS file system

mkreiserfs /dev/sdb2 (followed by answering yes to the prompt) mkfs -t reiserfs /dev/sdb2 (followed by answering yes to the prompt)

Create the swap partition on /dev/sdb2 Activate the swap partition on /dev/sdb2

mkswap /dev/sdb2 swapon /dev/sdb2

Insert the powermate driver into the kernel

modprobe powermate to insert the module into the kernel.

Set the password for user schawla to G20o1yO4

passwd schawla to change the password for the user account; however, you must use the" su" command to switch to the root user account before you can change the password. su -c "passwd schawla" to complete this task using single command. You will be prompted for the root user password, then prompted for the new password for the schawla user account. Note: Do not use the usermod -p command to change the password, as this stores the unencrypted version of the password in the /etc/shadow file.

Change the administrator user password to r8ting4str

passwd to change the password. When prompted, enter the current password (7hevn9jan) and the new password (r8ting4str).

Unmount /dev/sdb2 from /root/newdrive Mount /dev/sdb2 to /mnt/drive2

umount /root/newdrive to unmount the volume from the mount point directory. mount /dev/sdb2 /mnt/drive2 to mount the volume.

Delete the Iblaine user account Delete the Ilolaine home directory Delete the rconger user account Delete the rconger home directory Delete the auditors group

userdel -r lblaine to delete the blame user account and home directory. The inclusion ofthe -r switchremoves the home directory. userdel -r rconger to delete the rconger user account and home directory. groupdel auditors to delete the auditors group. cat /etc/group and ls /home to verify the changes.

Delete the thaslam user Delete the thaslam home directorv

userdel -r thaslam -r switch removes the home directory when the user is also removed. cat /etc/passwd and ls /home to verify that the account was removed.

Make cflynn a secondary member of the hr group Make mbrown a secondary member of the hr group

usermod -G hr mbrown to make mbrown a member ofthe hr group. usermod -G hr cflynn to make cflynn a member ofthe hr group. Note: The -g switch with the usermod command sets the primary group membership, not the secondary group membership. Use groups usemame to verify the user account's group membership.

Remove schavvla from the mgmt2 group Remove schavvla from the sales group Remove schavvla fromthe mgmtt group Remove schavvla from the hr group

usermod -G schawla to remove the user from all groups. Do not include a space between the quotes. cat /etc/group or groups schawla to verify the changes.

Lock the user accounts Lock the vedwards user account Lock the cflynn user account Lock the bkahn user account Unlock the user accounts Unlock the mbrown user account Unlock the bcassini user account Unlock the aespinoza user account

usermod -L or passwd -l followed by the user account name to lock (disable) the vedwards, cflynn, and bkahn user accounts. (Repeat this command for each user account.) usermod -U or passwd -u followed by the user account name to unlock (enable) the mbrown, bcassini, and aespinoza user accounts. (Repeat this command for each user account.) Use cat /etc/shadow to verify the changes. The inclusion of the exclamation point (!) in the password field indicates whether the account is disabled.

Rename the bcassini user account to bpalmer Change the comment field to Brenda Palmer Change the home directory to Ihomeibpalmer Move the home directory contents

usermod -c "Brenda Palmer" -d /home/bpalmer -m -l bpalmer bcassini cat /etc/passwd and ls /home

view /etc/group

view /etc/group

"Create" the pdenunzio user account Add Paul Denunzio as a comment for the user account Set eye8cereal as the password

1. useradd -c "Paul Denunzio" pdenunzio to create the user and set the comment in a single command. 2. passwd pdenunzio and then use eye8cereal to set the password for the user account. cat /etc/passwd to verify that the account was created.

Format the /dev/sdb1 volume with the ext3 file system

The ext3 file system is an extension of the ext2 file system and includes journaling features. mke2fs -j /dev/sdb1 (the -j switch enables journaling) mkfs -t ext3 /dev/sdb1 mkfs.ext3 /dev/sdb1

Format the /dev/sdc1 volume with the ext4 file system Format the /dev/sdc2 volume with the ext4 file system

Use one of the following commands to format the 1st partition on the third drive: o mke2fs -t ext4 /dev/sdc1 o mkfs -t ext4 /dev/sdc1 o mkfs.ext4 /dev/sdc1 Repeat the command, specifying fdevfsdc2 as the other partition.

Remove the mousedev driver module from the kernel

lsmod to view all installed modules. The mouse is controlled by the mousedev module. Use rmmod mousedev to remove the module from the kernel.


Kaugnay na mga set ng pag-aaral

Chapter 27: practice test, tophat, mastering biology

View Set

Ch. 23 Fundamentals- Legal Implications Nursing

View Set

Assignment 18 - Diamond Simulants

View Set

Chapter 4. State Insurance Statutes, Rules, and Regulations (Primerica)

View Set

Weeks 8-9 Quiz- Personal Finance

View Set

Ch 13 Nurodevelopmental and neurocognitive disorders

View Set