User Management Flashcards

1
Q

useradd

A
  • c: comments
  • G: add supplementary group
  • g: add primary group
  • m: home directory
  • s: default shell
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

passwd

A

-e: expire after use

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

userdel

A

-r: remove home directory

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

groups

A

Shows user what primary and secondary groups members of.

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

groupadd

A

Add system group

Remove with groupdel

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

/etc/passwd

A

Flat file database with info on users and system accounts.
Format is: user, password field ( x=encryption in /etc/shadow ) , uid, bid, uid info, full home path, comment for account, directory path for shell.

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

/etc/shadow

A
Similar layout to passwd.
User, encrypted password, days since J1:1970 password changed, min # days password valid, days may change password, days warning, days inactive following expire, day account expires.
Note: encryption can be identified within salt.
$1$=MD5
$2a$=Blowfish
$2y$=Blowfish
$5$=SHA256
$6$=SHA512
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

/etc/group

A

UID, password status, gid , other used in.

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

/etc/skeleton

A

Contains items automatically added to new user’s home directory when account created.

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

/etc/default/useradd

A

Config file referenced by useradd when new user acct created. Includes GROUP, HOME, INACTIVE, EXPRE, SHELL, SKEL, CREATE_MAIL, SPOOL.

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

getent

A

Query database for info about user/group.

Can see: group, passwd

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

usermod

A

Modify user account settings.

  • a: add
  • d: home directory
  • G: secondary group
  • L: lock login
  • s: shell file
  • U: unlock login
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

change

A

List and modify aging parameters of user passwd.

  • E : expire. Ex: -E 2019-01-01
  • l: list account settings
  • W : amount of days to expire.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

groupmod

A

Modify attributes of existing groups

  • g: set new GID
  • n: set new name for group.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly