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
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 |
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 |
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 |
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 |
Syntex to execute a ufsdump
How will you check the disk performance?
I would like to create users and the users account should be locked after 3 login attempts. How to create ? And where these locked information has been stored. Environment : NIS and if LDAP also
how to add a script, that execute at start time
How to find the network card speed
What are the minimum hardware requirements for cluster configuration?
What is difference between incremental backup and differential backup?
What is an alternative to the “top” command on Solaris?
Difference between probe-scsi-all and probe-scsi
If a User Account is locked,which file you need to check and how do you get to know at what time it has been locked.
please post step by step installation of packages from the EIS cd..
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