Chapter 1 Flashcards
How many fields are in each line of /etc/passwd?
7
Which command shows you the owner userid of a file as an integer?
ls -lan
Which characters can you use in usernames?
only lowercase letters, digits, and underscores
Red Hat recommends system users in what range?
1-499
What is the userid of the process with process id (PID) 1?
0
What is the problem with this line from /etc/passwd? root::0:0:root:/root:/bin/bash
the superuser account is unpassworded, so anyone can take over the computer
What happens if a user’s login shell is set to /sbin/nologin?
that user is not allowed to log in
In Red Hat Enterprise Linux, mail, news, and apache are examples of what?
system users
The command ps lax can be used to do what?
see userids of all processes on the system
The id command shows you what?
userid, username, and group information for the current user