Shared Flashcard Set

Details

Unit4-bp (Exam 2)
Linux+ Certification
17
Computer Science
Professional
02/23/2012

Additional Computer Science Flashcards

 


 

Cards

Term
Every user account defined on a system is represented by a line the __________ file (use full path)
Definition
/etc/passwd
Term
bob:x:500:500:Bob Smith,,,:/home/bob:/bin/bash
In this entry from /etc/passwd what do the 500:500 fields indicate
Definition
UID:GID of the user bob
Term
The ______ command prints the currently logged in user to the screen.
Definition
whoami
Term
The ______ command is similar prints UID, GID and a list of all the groups to which the currently logged in user belongs
Definition
id
Term
True or False: The /etc/passwd file contains a encrypted passwords for all users.
Definition
False
Term
The ____________ (use full path) stores the all users encrypted passwords.
Definition
/etc/shadow
Term
In the following /etc/shadow file line what are minimum number of days before joe can his password and the maximum number of days before he has to change his password.
joe:09ayfa098nq.a0nq4&$&F$:15393:7:90:7:14::
Definition
7 - minimum before password can be changed
90 - maximum before password must be changed
Term
What does the * in the password field in the /etc/shadow file indicate?
Definition
The account cannot be used for login.
Term
The _____ command allows a user to execute one command with elevated privileges.
Definition
sudo
Term
True or False: The /etc/sudoers files indicates what users can use the su - root command and which commands they can use.
Definition
False. Users are given privileges for the sudo command in /etc/sudoers.
Term
All actions performed with sudo are logged in ________ (full path).
Definition
/var/log/auth.log
Term
________ is used to edit the /etc/sudoers file and will parse the /etc/sudoers before saving to check for syntax errors.
Definition
visudo
Term
When using useradd defaults for the new user are defined in what two files? (full path)
Definition
/etc/login.defs
/etc/default/useradd
Term
What are the options for useradd to make a home directory and set the UID and GID.
Definition
-m (make home directory)
-u (set User ID)
-g (set Group ID)
Term
After creating a new user with user add the account is _________ if nothing is specified using the -p option.
Definition
disabled
-p (encrypted password)
Term
True or False. The /etc/login.defs file specifies default email location, password expiration information and range of UIDs and GIDs.
Definition
True (it also includes other stuff)
Term
The _____ directory contains commands to set new user environment variables.
Definition
/etc/skel
Supporting users have an ad free experience!