nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Getting started tutorials So much to read, so little time! If that is your problem, we have solution. Read our FAQ and tutorials to help you cut through the clutter of information overload. Only members of "contributors" group can post new tutorials. Other members can just reply to thread.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-01-2007, 07:20 PM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
OS: Ubuntu
Posts: 79
Thanks: 23
Thanked 4 Times in 3 Posts
Rep Power: 6
chimu is on a distinguished road
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
Reply


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 Off


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 17-01-2008 07:43 PM
shell script to send mail for each login. ephdia Shell scripting 2 27-11-2007 04:42 PM
Block Single User Login using root password sayan4u86 Networking, Firewalls and Security 0 28-09-2007 06:47 AM
Why are ulimit values not being set properly upon SSH (Secure Shell) login? jerry Networking, Firewalls and Security 0 15-06-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 10:22 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38