Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux General

Linux General Any questions that are not covered by other forums go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-08-2008, 03:24 PM
Senior Member
 
Join Date: Jan 2007
Posts: 140
Wanch is on a distinguished road
Default Change a user Login Shell

What is the command to change a users login shell?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-11-2008, 01:14 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 570
Jordan is on a distinguished road
Default

You can use 'chsh' for this purpose.

Code:
$ chsh -s <shell> <username>
You can also use chsh without the -s and it will enter into interactive mode. If you are trying to disable a login use the nologin shell:

Code:
$ chsh -s /sbin/nologin
The above command is great for disabling SSH access to a server.
Reply With Quote
  #3 (permalink)  
Old 08-13-2008, 01:31 PM
Tor Tor is offline
Senior Member
 
Join Date: Oct 2007
Posts: 390
Tor is on a distinguished road
Default

You can also use /dev/null but it is not as friendly. I think it only shows a permission denied error.

What does /sbin/nologin do?
Reply With Quote
Reply

Tags
login shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What shell do you use? Aereshaa Linux General 7 07-28-2008 06:29 PM
Perl or Shell? Hektor Linux Programming and Scripting 14 07-28-2008 12:53 PM
Using colors in Shell Script ptt3 Linux Programming and Scripting 1 04-03-2008 12:50 PM
Last Login of User Pan Linux General 2 03-24-2008 09:23 PM
Change login resolution of Ubuntu TotalPenguin Linux Applications 4 02-22-2008 04:24 PM


All times are GMT. The time now is 05:05 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.