Find the answer to your Linux question:
Results 1 to 4 of 4
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?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie humbletech99's Avatar
    Join Date
    Nov 2005
    Posts
    225

    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
    Location
    India
    Posts
    362
    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
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Linux Newbie humbletech99's Avatar
    Join Date
    Nov 2005
    Posts
    225
    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. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    44

    Reply

    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
  •