Accounts Flashcards

1
Q

What is the location for account passwords?

A

/etc/shadow

* has no permissions, owned by root

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

What is the location of account attributes?

A

/etc/passwd

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

What is the location of default configuration parameters for creating new users?

A

/etc/default/useradd

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

What is the location for login and password ageing information?

A

/etc/login.defs

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

How do you create/modify a user to have no interactive shell?

A

-s /sbin/nologin

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

What is the structure for an entry in /etc/shadow?

A

user:hashedpasswd:passwd expiry:min pass age:max pass age:days warning before pass expire:days account is active after expired:account expiration date

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

How do you change a group name?

A

groupmod oldname -n newname

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

How do you change the gid of a group?

A

groupmod -g groupname

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

How do you get information about a group?

A

getent group

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

How do you log into a new group to create files/directories with that group?

A

newgrp -

* the - reloads without having to logout and login

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

When changing group what is important to note?

A

The user must be a member of that group

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

How do you set the inherited group for all files/folders created within a directory?

A

chmod g+s

* setgid

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

How would you use sso with kerberos authentication

A

yum install realmd
realm discover
realm join
*authconfig-gtk is a gui alternative

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

What is the assigned UID range for system users?

A

0-200

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

What UID ranges are reserved for regular users?

A

1000+

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

What UID ranges are reserved for system users that do not own files on the system?

A

201-999