UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 19th, 2004, 02:35 PM
shahrahulb shahrahulb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 8 shahrahulb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old October 19th, 2004, 05:09 PM
ShizukaWashi ShizukaWashi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Central Florida, U.S.A.
Posts: 77 ShizukaWashi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 55 sec
Reputation Power: 4
Send a message via AIM to ShizukaWashi Send a message via Yahoo to ShizukaWashi
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

Reply With Quote
  #3  
Old October 19th, 2004, 06:58 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 44 m 37 sec
Reputation Power: 797
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

Reply With Quote
  #4  
Old October 19th, 2004, 09:22 PM
ShizukaWashi ShizukaWashi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Central Florida, U.S.A.
Posts: 77 ShizukaWashi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 55 sec
Reputation Power: 4
Send a message via AIM to ShizukaWashi Send a message via Yahoo to ShizukaWashi
Quote:
Originally Posted by Scorpions4ever
man chsh


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.

Reply With Quote
  #5  
Old October 20th, 2004, 01:48 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
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

Reply With Quote
  #6  
Old October 20th, 2004, 09:55 AM
ShizukaWashi ShizukaWashi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Central Florida, U.S.A.
Posts: 77 ShizukaWashi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 55 sec
Reputation Power: 4
Send a message via AIM to ShizukaWashi Send a message via Yahoo to ShizukaWashi
Quote:
Originally Posted by guggach
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


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.

Reply With Quote
  #7  
Old October 22nd, 2004, 01:29 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
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

Reply With Quote
  #8  
Old October 24th, 2004, 09:43 PM
ShizukaWashi ShizukaWashi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Central Florida, U.S.A.
Posts: 77 ShizukaWashi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 55 sec
Reputation Power: 4
Send a message via AIM to ShizukaWashi Send a message via Yahoo to ShizukaWashi
Quote:
Originally Posted by guggach
to change default shell YOU NEED ROOT PERMS
even if you do it by hand or using 'tools'
on solaris,...


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.

Reply With Quote
  #9  
Old October 25th, 2004, 01:04 AM
gurdeepdua gurdeepdua is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 4 gurdeepdua User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by shahrahulb
When I do finger username: it gives "Shell: /usr/local/bin/tcsh"
ihow do i change default shell to bash shell

Thanks,
Rahul


Put "bash: in your .profile . This will change your default shell to bash.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > changing default shell


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway