What is the command to change a users login shell?
Change a user Login Shell
Started by
Guest_Wanch_*
, Aug 08 2008 06:24 AM
2 replies to this topic
#1
Guest_Wanch_*
Posted 08 August 2008 - 06:24 AM
Guest_Wanch_*
|
|
|
#2
Guest_Jordan_*
Posted 11 August 2008 - 04:14 AM
Guest_Jordan_*
You can use 'chsh' for this purpose.
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:
The above command is great for disabling SSH access to a server.
$ 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:
$ chsh -s /sbin/nologin
The above command is great for disabling SSH access to a server.
#3
Posted 13 August 2008 - 04:31 AM
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?
What does /sbin/nologin do?


Sign In
Create Account

Back to top










