How to change the default new user shell without mentioning
-s /bin/sh in cmd useradd or usermod and which file we need
to change? this is not for existing user

Answers were Sorted based on User's Feedback



How to change the default new user shell without mentioning -s /bin/sh in cmd useradd or usermod an..

Answer / sanjog

shell initialization file are use to set user login environment.
there are two type of shell initialization
1) system wide initialization files ,i.e /etc/profile, &
/etc/.login)
then /etc /profile is used to change system environment for
bash shell korn shell bourne shell .
and ./etc/.login used to set system envi. for c shell, tc
shell ,z shell.
note :- shell initialization file template location under
/etc/skel directory .
2)user initialization:- file located users
($HOME.Profile , $HOME.csher, $HOME.login) .
then $HOME.profile for bourne /korne and
$HOME.csher,$HOME.login for c/Tc shell.

HOME= /export /home/user1
PATH= /usr/bin by default value.
to change
$PATH = /usr/bin/:/usr/sbin.
Vi editor the path into
file $HOME.Profile (for bash /korn shell)
to check, $echo $PATH
/usr/bin :/usr/sbin

Is This Answer Correct ?    8 Yes 1 No

How to change the default new user shell without mentioning -s /bin/sh in cmd useradd or usermod an..

Answer / chandu

ans) we have to edit default user setting file.
file is /usr/sadm/defaduser
in this file change shell

Is This Answer Correct ?    3 Yes 0 No

How to change the default new user shell without mentioning -s /bin/sh in cmd useradd or usermod an..

Answer / ajay shanker

Default shell for new users can be set , with
editing "defshell " parameter in /usr/sadm/defadduser.

Is This Answer Correct ?    0 Yes 0 No

How to change the default new user shell without mentioning -s /bin/sh in cmd useradd or usermod an..

Answer / rajesh.cherukuri

hi all
u can chage the default new user shell by aditing the file

source cshrc file....

or by editing /etc/passwd file we can modify the sahell


Regards
Rajesh.

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More Solaris Commands Interview Questions

How to unfreeze the svcgroup, (enable onl. & offl.)

2 Answers  


How will see the kernel version

5 Answers  


Explain FSCK

2 Answers  


If plex is failed then how can you recover it?

1 Answers   EDS,


What are performance tool used

1 Answers  






How will you restart the inetd process?

2 Answers  


what is the command to know about pkg information

7 Answers  


How to Encapsulate the new root disk (c2t2d0).

3 Answers  


what is use of default users in solaris especilly nobady,noacess and nobady4

2 Answers  


solaris kernel name

7 Answers   HP,


If NIC card is failed how can troubleshoot it?

2 Answers   EDS,


What are printer daemon

2 Answers  


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)