Security and File Permissions Flashcards

1
Q

how to make new user?

A

useradd

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

whare are the defalts used for creating useres stored?

A

in /etc/default/useradd

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

how to print user defauls via useradd

A

useradd -D

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

where are login configurations shtored?

A

/etc/login.defs

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

what is etc/skel

A

a directory where all files are copied into the users home directory

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

How to make default files appear in new user home dir automatically?

A

add it to /etc/skel of course!

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

command to modify a user

A

usermod

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

How to delete a user

A

userdel

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

how to delete a user and its home dir

A

userdel -r

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

how are groups categorized in /etc/group

A

groupname:passwd:GId:usersInGroup

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

(if) groups store encrypted passwords, where would they be

A

/etc/gshadow

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

how to add a new group

A

groupadd [options] groupname

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

change groupid (gid) of group

A

groupmod -g

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