You are logged in as root to a newly installed Solaris 11 system. You issue the command useradd
-d, and then examine the /usr/sadm/defadduser file. This file includes the entry defshell=/bin/sh.
Which shell will now be the default for the next account created?
A.
bash shell
B.
C shell
C.
korn shod
D.
bourne shell
Explanation:
Oracle Solaris 11 introduces user environment and command-line argument
changes that include the following:
* Shell changes – The default shell, /bin/sh, is now linked to ksh93. The default user shell is the
Bourne-again (bash) shell.
* The legacy Bourne shell is available as /usr/sunos/bin/sh.
* The legacy ksh88 is available as /usr/sunos/bin/ksh from the shell/ksh88 package.
* Korn shell compatibility information is available in /usr/share/doc/ksh/COMPATIBILITY.
Reference: Oracle Solaris 11 Information Library, User Environment Feature Changes
CORRECT is C:korn shell
In solaris 11 /bin/sh linked with ksh93.see the refference ….
Agree, but in question should be useradd -D (uppercase)
dear, by default Oracle Solaris 11 have bash shell so useradd -d command go with bash shell……
In Oracle Solaris 10, the default scripting shell (/bin/sh) is the Bourne shell. In Oracle Solaris 11, /bin/sh is the Korn shell (ksh93), and the default interactive shell is the Bourne-again (bash) shell. When used as a login shell, bash retrieves configuration information from the first instance of .bash_profile, .bash_login, or .profile file.
The default PATH environment variable for bash is /usr/bin:/usr/sbin, and /usr/gnu/bin now comes before /usr/bin.
If that is a typing error korn *shod* then i’ll go for C as my answer; but if on the real Exam it is also like that then I’ll go for A – bash shell.
D
/bin/sh = Bourne shell
A
The default shell, /bin/sh, is now linked to ksh93. The default user shell is the
Bourne-again (bash) shell.
* The legacy Bourne shell is available as /usr/sunos/bin/sh.
* The legacy ksh88 is available as /usr/sunos/bin/ksh from the shell/ksh88 package.
* Korn shell compatibility information is available in /usr/share/doc/ksh/COMPATIBILITY.
In solaris 11 ,
bash shell is the default for user;
Korn shell is the default for system;
Bourne shell is Original job control shell.
D
Default values:
root@solaris:~# useradd -D
group=staff,10 project=default,3 basedir=/export/home
skel=/etc/skel shell=/usr/bin/bash inactive=0
expire= auths= profiles= roles= limitpriv=
defaultpriv= lock_after_retries=
Changing the default shell to Bourne:
root@solaris:~# useradd -D -s /bin/sh
group=staff,10 project=default,3 basedir=/export/home
skel=/etc/skel shell=/bin/sh inactive=0
expire= auths= profiles= roles= limitpriv=
Checking the new values in the /usr/sadm/defadduser
root@solaris:~# cat /usr/sadm/defadduser
# Default values for useradd. Changed Mon Feb 1 15:14:39 2016
defgroup=10
defgname=staff
defparent=/export/home
defskel=/etc/skel
defshell=/bin/sh
definact=0
defexpire=
defauthorization=
defrole=
defprofile=
defproj=3
defprojname=default
deflimitpriv=
defdefaultpriv=
deflock_after_retries=
Adding a new user with the default values:
root@solaris:~# useradd cuker
checking the shell:
root@solaris:~# finger cuker
Login name: cuker
Directory: /export/home/cuker Shell: /bin/sh
Never logged in.
No unread mail
No Plan.
/bin/sh – Bourne shell
/bin/bash – Bourne Again shell
/bin/csh – C shell
/bin/ksh – Korn shell
/bin/tcsh – TC shell
/bin/zsh – Z shell
Congrats!! Passed Oracle 1Z0-821 exam with a good score of 90% few days ago (the passing line is 64% now)!
Total 70 questions, 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 close 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!
Part of PassLeader 1Z0-822 dumps are also available here for your reference:
http://www.oraclebraindump.com/?s=1Z0-822
Best Regards!!!
Realbraindumps offers the latest oracle 1z0-822 braindumps with 100% correct answers. Realbraindumps is providing 100% exam passing guarantee and full money back guarantee if candidate fail this exam realbraindumps is the full money back within one day. So I recommended you to download realbraindumps study material and pass your exam in the first attempt. For more information visit us. https://goo.gl/kHAnMD