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 ?

A

bash -r

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?

A

scp

25
Q

what is the for command ?

A

is a looping command.

26
Q

user-specifc configuration files are created under every user’s home directory n the hidden what?

A

.ssh directory

27
Q

what command would show me the hidden .ssh directory ?

A

ls -la ~/.ssh

28
Q

what doe the file id_rsa contain?

A

the user’s private encryption key

29
Q

what does the file id_rsa.pub contain ?

A

the user’s public encryption key

30
Q

what file contains a list of public keys that are permitted to login?

A

authorized_keys

31
Q

what file has a list of hosts from which logins have been allowed in the past?

A

known_hosts

32
Q

what does the config file contain?

A

a configuration file for specifying various options

33
Q

what command will generate a user’s private and public encryption keys ?

A

ssh-keygen

34
Q

the public key can be given to any machine with which you want to permit what?

A

password-less access

35
Q

If I were to invoke the following : $ sudo useradd dexter what UID would he receive?

A

the next available UID greater than UID_MIN ( specified in /etc/login.defs) by defuat is assigned to dexter.

36
Q

If I were to invoke $ sudo useradd dexter what would be his first group ID?

A

A group called dexter with a GID=UID is also created and assigned as dexter’s primary group.

37
Q

If I were to invoke $ sudo useradd dexter what home directory would dexter receive?

A

a home directory /home/dexter is created and owned by dexter.

38
Q

if the symbol !! or ! is placed in the password field of the /etc/shadow file for an user’s entry what would that indicate?

A

that the admin needs to assign the user a password for the account to be usable.

39
Q

If I were to invoke $ sudo userdel morgan what would happen to the home directory?

A

even though the account would be deleted. the home directory of the user would not be deleted.

40
Q

what option would I need to give to the command userdel to have the user’s home directory deleted as well?

A

-r

41
Q

what can I use the command usermod for?

A

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
Q

what would be the result of the following command?

sudo usermod -L dexter

A

dexter would be locked out of his account.

43
Q

if I would like to delete a user’s account what command would i use?

A

userdel

44
Q

in the file /etc/password contains how many lines for each user?

A

one

45
Q

each item associated to an user in /etc/password is seperated by what?

A

:

semicolon