Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Mar 25, 2023 9:47 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - How to change user login shell to bash in Linux
Author Message
Post subject: How to change user login shell to bash in Linux  |  Post Posted: Thu Jan 22, 2015 11:37 am
Newly created users in Debian and Centos Linux will have the default shell "sh" as seen below:
Code:
$ echo $SHELL
/bin/sh


Only root user or a sudo enabled non-root user will be able to change shells. The Linux command to change a user's login shell is "chsh".

Code:
# chsh -s /bin/bash MYUSER
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO