Font size
Worksheetslinux user and group dfn30053
Total questions: 10
Worksheet time: 3mins
What is the name of the file in which details of user accounts are stored?
/etc/uac
/etc/accounts
/etc/passwd
/etc/shadow
What two commands are used to add and remove users respectively?
usermod / userdom
useradd / userdel
usermod / moduser
mkuser / rmuser
What file stores information about groups on Linux systems?
/etc/group
/etc/groupon
/etc/groups
/etc/members
show information about the current logged in user
id
ids
id user
id username
file for checking if user was created
/etc/passwd
/etc/password
/etc/user
/etc/group
file for checking if user has passwords
/etc/users
/etc/shadow
/etc/all
/etc/group
show information about a user
id username
ids username
info username
info user
Which command changes deepak’s home directory from its default location to /usr/local directory? (select 1)
usermod -d /usr/local deepak
usermod -g /usr/local deepak
usermod -l /usr/local deepak
usermod -a /usr/local deepak
What is the command to delete the home directory of user along with the user?
# userdel <username>
# userdel -l <username>
# userdel -r <username>
# userdel -d <username>
The encrypted password of a user is stored in
/etc/passwd
/etc/shadow
/etc/enpasswwd
/etc/groups
