Sec. 30 User Account Management Flashcards

1
Q

What is the user name

A

The unique name assigned to each user

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

User password

A

The password assigned to each user

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

User identification number(uid)

A

A unique number adorn to a user account.

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

Group identification number (gid)

A

Indicates the primary, principal, or default group of the user

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

What is the login shell

A

This shell is a program such as /bin/bash or bin/csh

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

What utility would I use to create a user account?

A

useradd

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

What utility t Gould I use to remove a user account?

A

userdel

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

Name the utility that would allow me to change characteristics of an user account?

A

usermod

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

Name the utility that would put an expiration date on a user’s password?

A

chage

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

What utility allows me to change user passwords

A

passwd

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

What is the format of chage?

A

chage [-m mindays] [-M maxdays] [-d lastday] [-I inactive] [-E expiredate] [- W warndays] user

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

what does usermod -L do ?

A

lock the users account/password

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

what does usermod -l NEW_LOGIN do?

A

the names of the user will be changed form login to NEW_LOGIN

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

what does usermod -s SHELL do ?

A

the names of the user’s new login shell .

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

what does the usermod -U do ?

A

unlocks the users password

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

What is the format for the utility useradd ?

A

useradd [options] LOGIN

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

what does useradd -c do?

A

allows comments to be added to the user information. Usually the users full name

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

what does useradd -e EXPIRE_DATE do ?

A

it sets a date on which the account will be disabled

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

how would I execute a command to force the user to change their password the next time they login?

A

$ sudo chage -d 0 USERNAME

20
Q

how would I invoke a restricted shell ?

21
Q

What are some restrictions that a restricted shell enforce?

A
  1. prevents user from changing directories 2. redirecting input and output
22
Q

what is ssh?

A

stands for secure shell , allows an admin to login through the network into a remote system.

23
Q

what does the command whoami do ?

A

returns the user name of the owner of the current login session.

24
Q

what command copies files between hosts on a network?

25
what is the for command ?
is a looping command.
26
user-specifc configuration files are created under every user's home directory n the hidden what?
.ssh directory
27
what command would show me the hidden .ssh directory ?
ls -la ~/.ssh
28
what doe the file id\_rsa contain?
the user's private encryption key
29
what does the file id\_rsa.pub contain ?
the user's public encryption key
30
what file contains a list of public keys that are permitted to login?
authorized\_keys
31
what file has a list of hosts from which logins have been allowed in the past?
known\_hosts
32
what does the config file contain?
a configuration file for specifying various options
33
what command will generate a user's private and public encryption keys ?
ssh-keygen
34
the public key can be given to any machine with which you want to permit what?
password-less access
35
If I were to invoke the following : **$ sudo useradd dexter** what UID would he receive?
the next available UID greater than **UID\_MIN** ( specified in **/etc/login.defs**) by defuat is assigned to dexter.
36
If I were to invoke **$ sudo useradd dexter** what would be his first group ID?
A group called dexter with a GID=UID is also created and assigned as dexter's primary group.
37
If I were to invoke **$ sudo useradd dexter** what home directory would dexter receive?
a home directory **/home/dexter** is created and owned by dexter.
38
if the symbol **!!** or **!** is placed in the password field of the **/etc/shadow** file for an user's entry what would that indicate?
that the admin needs to assign the user a password for the account to be usable.
39
If I were to invoke **$ sudo userdel morgan** what would happen to the home directory?
even though the account would be deleted. the home directory of the user would not be deleted.
40
what option would I need to give to the command **userdel** to have the user's home directory deleted as well?
**-r**
41
what can I use the command **usermod** for?
the command **usermod** can be used to **change chararcteristics** of the *_user account_*, such as ***group memberships**, **home directory,** **login name**, **password**, **default shell**, **user id** ,**etc...***
42
what would be the result of the following command? ## Footnote **sudo usermod -L dexter**
dexter would be locked out of his account.
43
if I would like to delete a user's account what command would i use?
**userdel**
44
in the file **/etc/password** contains how many lines for each user?
one
45
each item associated to an user in **/etc/password** is seperated by what?
**:** **semicolon**