Run complete
35%
12 / 34 scored
Pick one to go back and answer it in this run.
christian via the Name Service Switch (works even when shadow entries come from a non-local source like LDAP).@weekly shortcut.Type the command that prints password-aging information for user mary.
Your answerno answer recorded
Correct answer`chage -l mary`
chage -l mary — lists last password change, expiry date, min/max lifetime, warning period. The passwd/chage pairs are exam favorites: passwd -x ≡ chage -M, passwd -n ≡ chage -m, passwd -S gives a brief status like chage -l.
Which TWO files control
| Started | Score | % | Change |
|---|---|---|---|
| 6 Sept 2026, 07:38 (current run) | 12 / 34 | 35% | — |
@monthly.Your answerA
Correct answerA, B
if cron.allow exists, *only* users listed there may use crontab; otherwise cron.deny lists who's blocked. /etc/crontab is the *system* crontab (job schedules, not permissions); at.conf doesn't exist — the at command has its own parallel pair, at.allow/at.deny.
Which chage option sets a user account's expiration date?
Your answerno answer recorded
Correct answer`chage -E <date>`
chage -E <date> (e.g. chage -E 2022-12-31 kevin). usermod -e is the equivalent via usermod.
useradd -G administrators,developers kevin — what does the uppercase -G control?
Your answerC
Correct answerB
lowercase -g sets the single primary group; uppercase -G takes a comma-separated list of secondary groups.
kevin belongs to secondary groups administrators, developers, and web-designers. You want to remove ONLY developers. What must you do?
Your answerA
Correct answerC
usermod -G has no "remove one" mode; it replaces the entire secondary-group list. (gpasswd -d also works and is more surgical, but the exercise's official answer path is the re-specify approach.)
A user's encrypted password field in /etc/shadow begins with !. What does this mean?
Your answerA
Correct answerB
an ! (or !!) prefix on the password hash locks the account against password login.
ls -l /usr/bin/crontab shows -rwxr-sr-x ... root crontab ... /usr/bin/crontab. What does the s in the group triplet enable?
Your answerC
Correct answerB
the SGID bit on the crontab binary is what lets non-root users manage their own cron entries.