Managing Users and Groups Flashcards

1
Q

/etc/passwd file contents

A

Stores User account information

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

/etc/shadow file contents

A

Hashed passwords, password requirements and expiration information

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

chage command

A

change age command, used to control password, expiration, expiration warnings, inactive days, and other information for existing accounts

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

Usermod -aG command

A

Adds user to a group and keeps them in their existing groups

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

usermod -l

A

changes the user’s login name

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

usermod -c

A

sets the comment field

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

List two commands to lock a user

A

passwd -l {user name}

Usermod -L {user name}

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

List two commands to unlock a user

A

passwd -u {user name}

Usermod -L {user name}

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

/etc/group file contents

A

storage and information location about all the groups on a system

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

Groupadd command

A

creates a group

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

Groupmod command

A

Used to change the group’s own attributes

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

Groupdel command

A

Delete groups from the /etc/group file

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

Groupmod -g command

A

change the group ID

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

Groupmod -n command

A

rename a group

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

whoami command

A

Used to display the user name with which you are logged in to the system

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

who command

A

Used to determine the details of users currently logged in to a system

17
Q

W command

A

primarily used to display the details of users who are currently logged in to a system

18
Q

Last command

A

Displays the history of user login and logout actions, along with the actual time and date

19
Q

ID command

A

Used to display user ID and group ID information

20
Q

.bashrc file

A

enables customization of the user’s own environment

21
Q

.bash_profile

A

Provides shell configuration for the initial login environment

22
Q

/etc/skel

A

Contents of this file are copied into the home directories of new users

23
Q

/etc/profile

A

Provides system-wide environment variables

run only at login

24
Q

.profile

A

user-specific bash customizations are pulled from the .profile file

25
/etc/profile.d/
storage locations for scripts
26
sudoedit command
Permits a user to edit a file with their own credentials, even if the file is only available to the root user Must make an entry in the sudoers file to use
27
visudo command
when using, the system verifies the syntax of the /etc/sudoers file before committing changes enabling the administrator an opportunity to correct mistakes before they become part of the configuration
28
The Wheel Group
Members of this group exercise the adminsitrative privileges of root with less potential for damaging the system visudo to edit privileges
29
useradd command
used to create user accounts and configure basic settings stored in the /etc/passwd configured according to various options set in /etc/login.defs
30
useradd -c
sets the comment field, which is typically used as the field for the user's full name
31
useradd -e
sets the account expiration date
32
useradd -s
sets the user's default shell
33
useradd -D
view the default configuration for new users