Changing Identity Flashcards
The su command allows..?
a user to switch user id.
The su command is usually called with…?
a hyphen, such as su -, to specify that the user should effectively log in as the new user.
The newgrp command, also called sg, allows a user to…?
switch primary group id.
The command that allows you to temporarily switch user id is called…?
simple su.
When using the su command, the shell is called 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.
If a user knows the password to the root account, this is often done by…?
“suing” to the root. If called without an argument, the su command assumes that the user is trying to become root.
In Linux and Unix, the root account is sometimes referred to as the ….?
“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.
command for making new groups…?
newgrp command, equivalently called the sg command.