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

FAQ
It is currently Tue Jun 06, 2023 8:21 am


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

Author Message
mandrei99
Post  Post subject: How to change user login shell to bash in Linux  |  Posted: Thu Jan 22, 2015 11:37 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 250

Offline
 

How to change user login shell to bash in Linux

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





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "How to change user login shell to bash in Linux"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. bash: Redirecting standard error to a shell variable and standard output to a file

debuser

0

4970

Mon Oct 31, 2011 6:54 am

debuser View the latest post

There are no new unread posts for this topic. Linux - Unable to login (and authentication succeeds) - File size limit exceeded

debuser

3

3226

Tue Dec 06, 2011 8:24 am

admin View the latest post

There are no new unread posts for this topic. bash: -bash: output: cannot overwrite existing file

debuser

0

4816

Mon Oct 31, 2011 7:03 am

debuser View the latest post

There are no new unread posts for this topic. Fix shell terminal after cat-ing a binary or echoing some encrypted content

admin

0

1714

Thu Mar 03, 2011 5:58 am

admin View the latest post

There are no new unread posts for this topic. Linux - zip command to archive directory recursive

debuser

1

6338

Sat Aug 04, 2012 8:03 am

Harespok View the latest post

There are no new unread posts for this topic. Linux/FreeBSD how to check ntp time synchronization

debuser

4

6718

Wed Aug 01, 2012 6:59 am

Harespok View the latest post

There are no new unread posts for this topic. Linux/FreeBSD: How to find process start time or running time with PS

admin

0

7842

Wed Jan 21, 2015 12:25 pm

admin View the latest post

 

Who is online
Users browsing this forum: No registered users and 1 guest
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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