Users and Groups Flashcards

1
Q

What command shows basic information about a logged in user?

A

■ id

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

What ‘ps’ option shows processes with a terminal?

A

■ ‘a’

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

What ‘ps’ option shows the user associated with a process?

A

■ ‘u’

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

How does the operating system track users internally?

A

■ By UID number

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

What are the fields of an /etc/passwd entry?

A

■ username:password:UID:GID:GECOS:/home/dir:shell
■ username - mapping of UID to username
■ password - historical field for password now stored in /etc/shadow
■ UID - identifies the user at the most fundamental level
■ GID - user’s primary group ID number
■ GECOS - arbitrary text, usually user’s real name
■ /home/dir - location of user’s personal data and conf files
■ shell - program that provides the user’s command line prompt

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

Which group normally owns the files created by a user?

A

■ Primary Group

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

What command allows the user to log in to a new group changing the current real group ID to the named group?

A

■ newgrp

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

What command sets administers group membership and passwords?

A

■ gpasswd

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

Whats the difference between ‘su’ and ‘su -‘?

A

■ ‘su [username]’ starts a non-login shell as that user with the current environment
■ ‘su - [username]’ starts a login shell as that user with a new environment

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

Where are commands executed by ‘sudo’ logged?

A

■ /var/log/secure

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

Where are parameters for new accounts and groups kept?

A

■ /etc/login.defs

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

What command is used to configure user password time limits?

A

■ chage

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

What command is used to configure/administer user accounts?

A

■ usermod

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

What user account setting allows a user to login to a system but prevents interactive use?

A

■ nologin

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

What character in an /etc/shadow entry signifies a locked account?

A

■ !

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

When using the date and chage command to set password date limits, how must the date command be used?

A

■ chage -E date +%F -d +180days
■ The date command must be used with two date arguments to work. Once as the format wanted for the target command and then again for the forward date.

17
Q

What daemon is responsible for retrieving and caching user information and authentication info?

A

■ sssd - system security services daemon

18
Q

What tool is used to automate the configuration of SSO on Linux systems?

A

■ authconfig

19
Q

What are the various tools included in the authconfig suite?

A

■ authconfig
■ authconfig-tui
■ authconfig-gtk (can be launched from system-config-authentication)

20
Q

What tool is used to retrieve information about a network user?

A

■ getent

21
Q

What specialized tool is used to enroll a client to an IPA server?

A

■ ipa-client-install

22
Q

What tool is used to configure the host for connecting to a central LDAP server?

A

■ system-config-authentication