|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
changing default shell
When I do finger username: it gives "Shell: /usr/local/bin/tcsh"
ihow do i change default shell to bash shell Thanks, Rahul |
|
#2
|
|||
|
|||
|
According to: http://www.techgirl-net.com/change.shtml
issue the following command as root. usermod -s /bin/<desired shell> <your user name> If you are do not have root access to the machine - you need to contact your system administrator, OR edit your .tcshrc file in your home directory and add the line "bash" to the end of it so that when you log in when your .tcshrc file is read to invoke the tcsh shell it will execute the "bash" command at the end and invoke a bash shell. Please note however that this will not change what's listed in the output of the finger command |
|
#3
|
||||
|
||||
|
man chsh
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#4
|
|||
|
|||
|
Quote:
Ohh - that command would be great if it existed on Sun OS 5.8!! It exists on my Linux box, but not on the universities Unix Sun boxes. ![]() |
|
#5
|
|||
|
|||
|
you don't need tools to do that.
edit /etc/passwd change last field of given user DO NOT change root's shell (/sbin/sh) see: man passwd |
|
#6
|
|||
|
|||
|
Quote:
Yes, but in order to do that you need to be root, unless the system administrator set the system up differently than normal, which I doubt because if he/she had then you'd be able to change anyone's shell - which is a security risk - probably not a big one- but if nothing else it would probably annoy a bunch of people. |
|
#7
|
|||
|
|||
|
to change default shell YOU NEED ROOT PERMS
even if you do it by hand or using 'tools' on solaris, if you are member of group 14 you can use 'admintool' to become group 14, if you are not in that group, you need root access ![]() |
|
#8
|
|||
|
|||
|
Quote:
Really? Hmm, that's wierd because I can use the chsh tool on my Linux box to change my own shell without having to log in as root. I figured the same would apply to Sun OS. |
|
#9
|
|||
|
|||
|
Quote:
Put "bash: in your .profile . This will change your default shell to bash. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > changing default shell |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|