linux_shortcuts Flashcards

CHFI certificate

1
Q

/etc/default/useradd

A

file contains default values used by the useradd utility when creating a user account, including:

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

/etc/group

A

The file that contains group definitions and memberships. same as active directory

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

/etc/login.defs

A

contains: Values used for the group and user ID numbers

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

/etc/passwd

A

contains the user account information

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

/etc/shadow

A

The file that contains the encrypted password as well as password and account expiry parameters for each user account.

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

/etc/skel

A

directory contains a set of configuration file templates that are copied into a new user’s home directory when it is created, including the following files:

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

passwd -d

A

removes the password from an account.

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

passwd -l username

A

Lock users out with this command

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

passwd -n

A

sets the minimum number of days a password exists before it can be changed.

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

passwd -S username

A

displays the status of the user account.

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

passwd -t

A

sets the number of days following the password expiration that the account will be disabled.

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

passwd -u

A

enables (unlocks) an account.

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

passwd -w

A

sets the number of days before the password expires that the user is warned.

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

passwd -x

A

sets the number of days before a user must change the password (password expiration time).

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

useradd - r

A

specifies that the user account is a system user

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

useradd -c

A

adds a description for the account in the GECOS field of /etc/passwd.

17
Q

useradd -d

A

Specifies the path of the user’s home directory

18
Q

useradd -D

A

displays the default values specified in the /etc/default/useradd file

19
Q

useradd -e

A

specifies the date on which the user account will be disabled

20
Q

useradd -f {numdays}

A

pecifies the number of days after a password expires until the account is permanently disabled

21
Q

useradd -g group

A

defines the primary group membership

22
Q

useradd -L

A

locks the user account

23
Q

useradd -m username

A

creates the user’s home directory (if it does not exist).

24
Q

useradd -M

A

defines the secondary group membership

25
Q

useradd -n

A

does not create a group with the same name as the user (Red Hat and Fedora, respectively).

26
Q

useradd -p

A

defines the encrypted password

27
Q

useradd -s

A

defines the default shell.

28
Q

useradd -u

A

assigns the user a custom UID. This is useful when assigning ownership of files and directories to a different user.

29
Q

userdel -f username

A

forces the removal of the user account even when the user is logged into the system.

30
Q

userdel -r username

A

removes the user’s home directory.

31
Q

userdel [username]

A

deletes a user

32
Q

usermod -c

A

changes the description for the account

33
Q

usermod -l

A

renames a user account.

34
Q

usermod -U

A

unlocks the user account.

35
Q

usermod

A

Modify user account