Linux Flashcards

1
Q

passwd fields: order required

A

Username
Password
User ID
Group ID
Comment
Home Dir
Login Shell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Shadow fields: order required

A

Username
Password
Days since passwd change
Days before may change
Days before must change
Days until passwd warn
Days after expired until account disabled
Days until account expires
Reserved

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

/etc/profile file

A

set system wide variables and startup programs for user shells

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

~/.bash_profile

A

set user specific environment variables for new login shells

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

~/.bashrc

A

maintain user-specific shell configurations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

/etc/skel dir

A

files copied on user creation to pre-populate config files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

/etc/login.def

A

define default account settings including home dir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

useradd options

A

-c comment
-e expiration date yyyy-mm-dd
-m home dir
-s default shell
-u user ID
-D display default settings

adduser gives preset options for user info

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

usermod and options

A

makes changes to existing user using the same options as useradd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

user add error codes: 0 1 9 12

A

0 success
1 Couldn’t update passwd file
9 Username is already in use
12 Couldn’t crest the home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

user mod/del

A

0 success
1 Couldn’t update passwd file
2 Invalid command syntax
6 Specific user doesn’t exist
8 Cannot delete user bc user logged in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

who

A

displays logged in users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

id command

A

displays user and group ID and group membership

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

passwd options

A

-d delete and disable
-e expire password and force change
-l lock account
-u unlock count

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

chage comand and fields

A

displays password information
Last passwd change date
Pass Expiration
Account unactive date
Account expiration date
Minimum day between pass change
Maximum days between pass change
Days before warning of expiration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

chage options

A

-l curent values
-M Maximun
-m minimum
-W warning days
-E specifiy lock after date

17
Q

pam_faillock2

A

module to track user logins and attempts and can configure to lock user out. pamtally2 was a proprietor and should not be used over fail lock