Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

UNIX \" Debian System \" commands only please. Create a quarterbacker group. Cha

ID: 3813324 • Letter: U

Question

UNIX "Debian System" commands only please.

Create a quarterbacker group. Change the defaults for users using the following defaults: base directory -> /home/qb, shell -> /bin/bash. Create three users: rodgers, brees, and brady using the new defaults. Change the defaults back to the original defaults (note you may need to determine what the defaults are before changing them). Add the three users to the quarterbacker group and then create a directory for anyone in the packers group to share named /usr/shared/qb (directory may need to be created and its permissions/ownership may need to modified) and create a link to this shared directory inside each of their home directories. NOTE: show all commands and you cannot change any files to make any of these changes.

Explanation / Answer

groupadd quarterbacker

useradd rodgers
useradd brees
useradd brady   ##this will create the users with default value save these defaults for later use

useradd -D ## will deisplay the default values

#to change the default values
useradd -D -b /home/qb -s /bin/bash

# again you can change to noted default using the same syntax

useradd -g quarterbacker
# this will add the user to group

#to make shared directory
mkdir /usr/shared/qb

#to change the permision
chmod 750 /usr/shared/qb #ower has all permission, group has permission to read and execute and other has no permission

#to add the group
groupadd qb

#to change the group for the folder
chgrp qb /usr/shared/qb

#to add user to group folder
usermod -a -G qp rodgers