Find the answer to your Linux question:
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.
  1. #1
    Just 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) ?

  2. #2
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    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

  3. #3
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682

    Re: /bin/false

    Quote Originally Posted by kamtono
    is it right, if i want to disable some account to access into my server (example using ssh client or whatever or putty) ?
    To completely disable their access, you can do that. Also you can use these commands:

    Code:
    passwd -l username
    passwd -u username
    These are definately the 'cleanest' ways to lock (-l) and unlock (-u) an account. You can also change /etc/passwd like this:

    Code:
    user:x:1001:100::/home/user:/bin/bash
    user:*:1001:100::/home/user:/bin/bash
    Or /etc/shadow like this:

    Code:
    user:$1$pN7NBTxT$iLyZfJw2RhRsZCzSeObNA0:12752:0:99999:7:::
    user:!$1$pN7NBTxT$iLyZfJw2RhRsZCzSeObNA0:12752:0:99999:7:::
    (notice I added the !)

    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •