Changing Identity Flashcards

1
Q

The su command allows..?

A

a user to switch user id.

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

The su command is usually called with…?

A

a hyphen, such as su -, to specify that the user should effectively log in as the new user.

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

The newgrp command, also called sg, allows a user to…?

A

switch primary group id.

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

The command that allows you to temporarily switch user id is called…?

A

simple su.

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

When using the su command, the shell is called a…?

A

non-login shell. (Example, prince didn’t fully log in - the prompt indicates he’s still sitting in elvis’s home directory. Although the shell, and all that it starts, belongs to prince, much of the shell’s environment was inherited from elvis.
In order to completely log in as a new user, the su command can be called with a - (a bare hyphen). This specifies that the new user’s shell should be a login shell.

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

If a user knows the password to the root account, this is often done by…?

A

“suing” to the root. If called without an argument, the su command assumes that the user is trying to become root.

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

In Linux and Unix, the root account is sometimes referred to as the ….?

A

“superuser”. This term probably came about because of a misunderstanding of the meaning of the letters of the su command which are so often used to become root. Rather than superuser, the letters stand for switch userid.

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

command for making new groups…?

A

newgrp command, equivalently called the sg command.

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