1. Given the output:
root console Sep 28 06:13 (:0) pete pts/2 Nov 6 05:23 (java) mark pts/6 Sep 28 06:13 (acorn)
Which statement correctly describes the command used to generate it?
# useradd D skel_dir=/etc/skel
What is the result?
Existing users' .profile files are replaced by /etc/skel/.profile.
The .profile files used for all subsequently created accounts will be copied from /etc/skel/.
The default .profile files are deleted.
Nothing. The command is invalid.
3. What command is used to search for files?
4. What is the purpose of the rusers command?
List which local and remote users are logged on.
Interactively remove user accounts.
Bulk remove user accounts.
List dormant user accounts.
5. Which three are valid expressions of the find command? (Choose three)
6. Given the passwd file entry:
What is this user's primary groupid?
It is NOT possible to tell.
7. Given the password file entry:
What is this user's first secondary groupid?
It is not possible to tell.
root::0:root other::1: bin::2:root,bin,daemon sys::3:root,bin,sys,adm adm::4:root,adm,daemon uucp::5:root,uucp mail::6:root tty::7:root,tty,adm lp::8:root,lp,adm nuucp::9:root,nuucp staff:GSSUYVrJ8EKyA:10:pete daemon::12:root,daemon sysadmin::14: nobody::60001: noaccess::60002: nogroup::65534:
What is the effect of the user mark executing the newgrp staff command?
The newgrp command will create a new group called staff, overwriting the existing entry.
The newgrp command will attempt to create a new group called staff, but will be unable to because the group staff is password protected.
The user will be prompted for the password for the group staff.
The attempt will fail, because the group staff is locked by root.
9. Given the shadow file entry:
What is the meaning of the string NP?
The user selected a short password which encrypts to the string "NP".
The user's primary groupid is NP.
No password is required to log into the account.
The account is locked.
10. You need several people to log in to the same account to run an application, and you want files created by one person to be owned by all of the others. However, you do not wish to have the same password shared between all of the users. Which is the correct method to achieve this?
Make all of the users members of the same group.
Create all of the user accounts with the same user ID.
Assign the same home directory for all of the users.
Create one password file entry for all users, and one shadow file entry for each user.
11. What command is used to add a user account to the system?
12. You removed a user account from the system, but you did not check first to see if the user owned any files. What command and option should you use to locate files owned by that user?