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]
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
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~]$
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]