Linux users and groups quiz
Ten questions across the whole chapter. Each answer explains why. Aim for eight before moving on to chapter 7.
- Which file must be readable by every user, and so holds no password hashes?
- What is the login shell of this account: www:x:48:48:Web server:/usr/share/httpd:/sbin/nologin?
- What is the difference between su - and sudo -i?
- A new rule in /etc/sudoers.d has a syntax error. What can happen?
- Which command adds the existing user kim to the group docker without removing her other groups?
- You create an account with useradd. Why can't it log in straight away?
- What does chage -d 0 alice do?
- Which keeps a user out completely, including SSH key logins?
- Which groupdel will fail?
- Where are every sudo command and every refusal recorded?