nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

How to change the login shell for Linux user

This is a discussion on How to change the login shell for Linux user within the Getting started tutorials forums, part of the Linux Getting Started category; Use chsh command to change the user login shell. This determines the name of the user's initial login command. A ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-26-2007, 07:20 PM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
My distro: Ubuntu
Posts: 33
Rep Power: 0
chimu is an unknown quantity at this point
Default How to change the login shell for Linux user

Use chsh command to change the user login shell. This determines the name of the user's initial login command. A normal user may only change the login shell for her own account, the super user may change the login shell for any account.

Display list of shell
Code:
less  /etc/shells
cat  /etc/shells
more /etc/shells
Change the user login shell to /bin/ksh for foo user
Code:
chsh -s /bin/ksh foo
chsh -s /bin/bash username
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux force user to set a password the first time they login nixcraft Getting started tutorials 2 01-17-2008 07:43 PM
shell script to send mail for each login. ephdia Shell scripting 2 11-27-2007 04:42 PM
Block Single User Login using root password sayan4u86 Networking, Firewalls and Security 0 09-28-2007 06:47 AM
Why are ulimit values not being set properly upon SSH (Secure Shell) login? jerry Networking, Firewalls and Security 0 06-15-2007 10:58 PM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 01:36 AM


All times are GMT +5.5. The time now is 02:27 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36