Assume you are on a system that has a valid use account johnjay Consider the following
command-line invocation:
rolemod –p “Network Administrator,All,Stop” johnjay
What is the result?
A.
The user will not acquire profiles allowed in /etc/secutity/policy.conf
B.
There is no effect. The user acquires all profiles before the Stop profile is read.
C.
The system will return an error.
D.
The user gets Network Administrator profile and all profiles listed in the All macro.
Explanation:
root@solaris:~# useradd johnjayroot@solaris:~# passwd johnjayNew Password:Re-enter new
Password:passwd: password successfully changed for johnjayroot@solaris:~# rolemod -p
“Network Administrator,All,Stop” johnjayUX: rolemod: ERROR: Users must be modified with
‘usermod’.root@solaris:~#
root@solaris:~# rolemod -p “Network Administrator,All,Stop” ysj
UX: rolemod: ERROR: Users must be modified with ‘usermod’.
The answer is C
C