QuestionQ101

VerifiedUsers and Groups

Regarding the command userdel --force --remove bob, which two statements are true?

Choose two
Explanation

Running userdel removes the specified account's entries from the system's user/group database files (/etc/passwd, /etc/shadow, /etc/group, /etc/gshadow), so bob is removed from the user database. The --remove (-r) option additionally causes userdel to delete the files in the user's home directory along with the home directory itself and the user's mail spool. Files owned by bob that reside on other, non-home filesystems are not automatically deleted (the administrator must search for and remove them manually), and userdel does not update the locate/mlocate database, which is refreshed independently by updatedb.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!