You issue the following sequence of commands: Identify two correct statements.

You are logged in to a Solaris 11 system as user jack. You issue the following sequence of commands:

Identify two correct statements.

You are logged in to a Solaris 11 system as user jack. You issue the following sequence of commands:

Identify two correct statements.

A.
You have the effective privilege of the account root.

B.
Your GID is 10.

C.
Your home directory is /root.

D.
You are running the shell specified for the account root.

E.
Your UID is 1.

Explanation:
Oracle Solaris provides predefined rights profiles. These profiles, listed in the
/etc/security/prof_attr, can be assigned by the root role to any account. The root role is assigned
all privileges and all authorizations, so can perform all tasks, just as root can when root is a user.
To perform administrative functions, you open a terminal and switch the user to root. In that
terminal, you can then perform all administrative functions.
$ su – root
Password: Type root password
#
When you exit the shell, root capabilities are no longer in effect.
Reference: User Accounts, Roles, and Rights Profiles



Leave a Reply 20

Your email address will not be published. Required fields are marked *


Richie

Richie

correct answers were A and D
– see here
$ id
uid=60004(richie) gid=10(staff)
$ su
Password:
# id
uid=0(root) gid=0(root)
# cd ~
# pwd
/home/richie

vitalyb

vitalyb

A and D of course.

Murali

Murali

A & B is correct (check the difference between “su” & “su -“

Nagesh

Nagesh

A & B is correct see the difference between su and su –

Andrea

Andrea

Hi Nagesh. In the example shown by Richie use su (without -) and the UID is 0. Could you help me. Tks

ton_adam

ton_adam

A, D are correct.

“The new shell will be the shell specified in the shell field of username’s password file entry.” That’s always the case running su, also without the dash. I know because I always change root shell back to my preferred shell.

B could be correct, the GID is indeed 10 for jack. However, after the su the effective GID will change to 0. Since that answer is open to debate, I would say A and D are the correct answers here.

david

david

A. B is correct

gbenga

gbenga

David can you explain

Armen

Armen

Only A is correct. E will be correct if it changed to “… UID is 0”

Mir

Mir

it is variable game..you just set “jack@solaris” on terminal. means every user even root login they show “jack@solaris”….but “$” and “#” represent that is it normal user or root user.

Mir

Mir

one more thing i want to tell you this is configure in solaris 10….solaris 11 have bash shell and it show |”Username” @ “ComputerName” “PWD”| (|”#”/”$”|)

Saeed

Saeed

D is not correct answer. try to execute echo $SHELL command after executing su..

Banchain

Banchain

A is an only correct answer

Banchain

Banchain

But if I choose I choose A,D

Dupek

Dupek

A and B are corrects. B because th question is about GID and not affective GID. Let’s see this output:
llaszlo@s11:~$ su
Password:
root@s11:~# echo $SHELL
/usr/bin/ksh
root@s11:~# env
LC_MONETARY=
TERM=xterm
SHELL=/usr/bin/ksh
SSH_CLIENT=192.168.56.1 59653 22
LC_NUMERIC=
SSH_TTY=/dev/pts/2
LC_ALL=
USER=llaszlo
genius=thomson
PAGER=/usr/bin/less -ins
A__z=”*SHLVL
PATH=/usr/sbin:/usr/bin
MAIL=/var/mail/llaszlo
LC_MESSAGES=
LC_COLLATE=
PWD=/export/home/llaszlo
LANG=en_US.UTF-8
TZ=localtime
SHLVL=2
HOME=/export/home/llaszlo
LOGNAME=llaszlo
SSH_CONNECTION=192.168.56.1 59653 192.168.56.3 22
LC_CTYPE=
LC_TIME=
_=/usr/bin/env
root@s11:~# grep root /etc/passwd
root:x:0:0:Super-User:/root:/usr/bin/bash

Home directory remains llaszlo’s home directory and SHELL is remain ksh (root has bash).

Yoboo

Yoboo

A D is correct.

edit /etc/passwd and set “dummy” for the shell of user root ->
when you do “su” you’ll get the message:
“su: No shell /usr/bin/dummy. Trying fallback shell /sbin/sh”

Paul

Paul

Hi! All!

Passed Oracle 1Z0-821 exam with a good score of 90% (the passing line is 64% now)!

Got 70 questions in total, and questions were on:
1. Installing Oracle Solaris 11 using an Interactive Installer
2. Administering Services
3. Setting Up and Administering Data Storage
4. Administering Oracle Solaris Zones
5. Setting Up and Administering User Accounts
6. Controlling Access to Systems and Files
(New) 7. Managing the SYSLOG facilityManaging the CRON facility
(New) 8. Managing the SYSLOG facility

Pay attention to the up 7 & 8 topics when preparing for the 1Z0-821 exam. Questions on those two topics are not available on this site.

And, you can refer to the most valid 1Z0-821 dumps (2017 version) here:

http://www.oraclebraindump.com/?s=1Z0-821

(Those questions are part of PassLeader 1Z0-821 dumps, recommend to get its full version 1Z0-821 dumps with VCE and PDF.)

Good Luck!

vatsy61

vatsy61

Hi Paul,

Can you help me in getting dumps or question bank for the exam 1z0-329?

Regards,
Vatsal