Workbook 3: User and Groups: Chapter 4: Changing Identity Flashcards

1
Q

You are currently logged in as user prince. Give a command line to temporarily switch your
identity to the root user.

A

su - [28]

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

What is the difference between
(i) su
and
(ii) su –

A

(ii) will change current user to a new user and still will be running as it own user
(ii) will change only to a new user

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

What character is used in the command line prompt to indicate that the shell is being run as

(i) the root user and
(ii) an ordinary user?

A

(i) [root@localhost ~]#

(ii) [user@localhost~]$

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

Why would an ordinary user use the newgrp command?

A

users might want to make one of their secondary groups the primary group [28/29]

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