Shared Flashcard Set

Details

rhel 5 training guide ch 12
Users and Groups
38
Computer Science
Professional
11/09/2010

Additional Computer Science Flashcards

 


 

Cards

Term
/etc/passwd
Definition
File that holds vital user login data
Term
how long can a username be
Definition
up to 255 characters
Term
first field of each line of /etc/passwd
Definition
username
Term
second field of /etc/passwd
Definition
password placeholder
username:x:UID:GID...
Term
List the fields of the lines in /etc/password
Definition
Username:password-placeholder:UID:GID:Comments:Homedir:Shell
Term
who owns /etc/passwd
Definition
root
Term
list the fields in /etc/group
Definition
GroupName:x:GID:GroupMembers
x=password placeholder
Term
/etc/shadow
Definition
encrypted password file, and password aging fields
Term
password aging, list the fields
Definition
lastchg days: mindays: maxdays: warddays: inactive days: disabled days: NotUsed
Term
permissions on /etc/shadow
Definition
400
Must be owned by root
Term
verify the consistency of the user Auth. files
Definition
pwck
Term
command to edit the password or shadow files
Definition
vipw - locks the files so that they can't be effed with
Term
You edited password by hand adding an unencrypted password, make it right
Definition
pwconv
Converts from /etc/passwd and updates /etc/shadow
Term
edit the group file by hand
Definition
vigr
Term
add a user
Definition
useradd username
Term
modify the password aging attributes
Definition
chage
Term
make user user2 change password on next login
Definition
chage -d 0 user2
Term
modify user user2 so that they can't modify their password for 5 days after they change it
Definition
chage -m 5 user2
Term
list the current password aging parameters for user2
Definition
chage -l user2
Term
change the finger information for user2
Definition
chfn user2
Term
look at the user information for user2
Definition
id user2
Term
add user2 to the admin group
Definition
usermod -a -G admin user2
Term
lock the user2 account
Definition
usermod -L user2
Term
unlock the user2 account
Definition
usermod -U user2
Term
delete user2, include deleting the home dir and mail dir
Definition
userdel -r user2
Term
display failed login attempts
Definition
lastb
Term
display recent login information
Definition
last
Term
who failed at logging in
Definition
faillog
Term
show who is currently logged in
Definition
who
Term
add a group webgroup
Definition
groupadd webgroup
Term
add user1 as an administrator of webgroup
Definition
gpasswd -A user1 webgroup
Term
add user2 as a member of webgroup
Definition
gpasswd -a user2 webgroup
Term
what is the point of having a group password
Definition
users can use the password to temporarily change into that group with the following command:
newgrp webgroup
enter group password
Term
delete a group
Definition
groupdel group
Term
/etc/bashrc
Definition
sets system-wide functions and aliases
Term
/etc/profile
Definition
system-wide, sets environment variables
Term
/etc/profile.d
Definition
scripts located here are called by /etc/profile
Term
remove shell access for an ftp only user, user2
Definition
chsh -s /sbin/nologin user2
Supporting users have an ad free experience!