Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Disabling login access to account, nologin,false or null?

    which is better for security in order to disable login to an account, setting the shell to false, nologin or null?

    is there any difference?

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    nologin will do. But it will not keep root away.

    In case, if you want to restrict some access from remote, use ssh and u can even block root access thro' ssh.
    Registered Linux User #440311

  3. #3
    oh yeah? I bet false will keep even root out, not that you'd want to blow your own foot off like that though...

  4. $spacer_open
  5. #4


    I believe the best option would be to allow the user to change his password without giving him login access. try this

    shell= /bin/passwd

Posting Permissions

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