Results 1 to 3 of 3
is it right, if i want to disable some account to access into my server (example using ssh client or whatever or putty) ?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-11-2005 #1Just Joined!
- Join Date
- Feb 2004
- Location
- Indonesia
- Posts
- 84
/bin/false
is it right, if i want to disable some account to access into my server (example using ssh client or whatever or putty) ?
- 01-11-2005 #2
If the server/service/daemon/whatever checks for a valid login shell and is configured to do so it should work that way. It prevents shell access using a normal console.
I\'m so tired .....
#200472
- 01-11-2005 #3
Re: /bin/false
To completely disable their access, you can do that. Also you can use these commands:
Originally Posted by kamtono
These are definately the 'cleanest' ways to lock (-l) and unlock (-u) an account. You can also change /etc/passwd like this:Code:passwd -l username passwd -u username
Or /etc/shadow like this:Code:user:x:1001:100::/home/user:/bin/bash user:*:1001:100::/home/user:/bin/bash
(notice I added the !)Code:user:$1$pN7NBTxT$iLyZfJw2RhRsZCzSeObNA0:12752:0:99999:7::: user:!$1$pN7NBTxT$iLyZfJw2RhRsZCzSeObNA0:12752:0:99999:7:::
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy


Reply With Quote
