LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-11-2009, 10:28 AM   #1
apdas
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
How to change the default shell in Linux


How to change the default shell in Linux
 
Old 11-11-2009, 10:34 AM   #2
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Open the file /etc/passwd and Change the last field (with the path of the shell to be changed) in the line against the user whose default shell is to be changed
 
Old 11-11-2009, 12:11 PM   #3
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
or
sudo chsh -s path/to/shell_executable username
e.g.

sudo chsh -s /bin/zsh apdas
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd like to change the default shell prompt. lynnevan Linux - General 9 09-08-2011 09:00 AM
How to change the default login Shell in FreeBSD paragkalra *BSD 6 04-16-2009 03:40 AM
Slackware 10.2: How do I change default font for shell? PastorFrederick Linux - Newbie 6 10-17-2005 11:10 PM
How to change the default shell to bash? shadkong Slackware 12 04-23-2005 04:49 PM
How to change default root shell fessin Linux - General 2 02-14-2003 12:25 AM


All times are GMT -5. The time now is 09:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration