You must remove the user harhest from your Oracle Linux system because the person has left the
company:
User harhest has numerous files, directories, and a crontab.
You issue:
Userdel –r harhest
Which three outcomes result from the execution of this command?
A.
Files in the harhest home directory are removed.
B.
The home directory of harhest is removed.
C.
Files owned by narhest in any directory are removed.
D.
All directories owned by harhest are removed.
E.
The /var/spool/mail/harhest mailbox is removed.
F.
crontab /var/spool/cron/harhest is removed.
Explanation:
The userdel command modifies the system account files, deleting all entries that
refer to the user name LOGIN. The named user must exist.
parameter –r
-r, –remove
Files in the user’s home directory will be removed along with the home directory itself and the
user’s mail spool. Files located in other file systems will have to be searched for and deleted
manually.
A,C,E
Sorry, I have to correct my self.
A, B, E
A, B, E
Answer: A, B and E
Not F, because by default, userdel doesn’t remove the user’s cron, at, and print jobs. To do it, uncomment the following line in /etc/login.defs:
USERDEL_CMD /usr/sbin/userdel_local
it’s should be A C and E, but there is a trap in the C answer “narhest” so the question talking about “harhest” user. So it’s A, B, and E. Nerver F
A C and E
r, –remove Files in the user’s home directory will be removed along with the home directory itself and the user’s mail spool. Files located in other file systems will have to be searched for and deleted manually.
The mail spool is defined by the MAIL_DIR variable in the login.defs file.
—–>> B
A B and E