/etc/nologin file disappears

From: wayne (wayne_at_localhost.localdomain)
Date: 06/25/03


Date: Tue, 24 Jun 2003 22:28:42 GMT

I am trying to make my system at home as secure as possible.
One thing I tried was to create a /etc/nologin file. It
worked in that I couldn't log in to ssh as me, but I could
as root. After shutting down for the night, the next day the
file was gone! File privileges were set to 444. What's going
on?

I also want to prevent root from logging in. The /etc/ssh/
sshd_config file has the following:

    #PermitRootLogin yes

Because it is commented out, I am assuming that the default
is no. Do I need to explicitly set it to no?

One other issue, the contents of /etc/nologin is not echoed
when I attempt to log in as me. It simply fails after three
tries and hangs up. When I ssh in as root, the contents of
/etc/nologin are echoed. This is not working as advertised.

I am running Redhat 9.1 with openssh-3.5p1-6.

Thanks,

-- Wayne.



Relevant Pages

  • Re: Is OpenSSH 3.5p1 secure?
    ... Do not allow root access over ssh. ... Do allow access over ssh for one and only one user. ... NOTHING is perfectly secure. ...
    (comp.security.ssh)
  • Re: securing sshd_config
    ... so that you can use ssh from some other computer which has ssh ... or you will use a far far less secure means. ... but if I've the necessity of log-in like Administrator (i use Windows!) ... ]execute "su" to became root. ...
    (comp.security.ssh)
  • RE: Linux hacked
    ... Also, what exactly did the history file show, can you paste it into a mail ... > First let me say I'm a security novice. ... > been unsuccessful in getting root back. ... > via ssh but you could su in once logged in as one of three users. ...
    (Security-Basics)
  • Re: Linux hacked
    ... To find out what kernel version you are running, type "uname -a" without ... > been unsuccessful in getting root back. ... > via ssh but you could su in once logged in as one of three users. ...
    (Security-Basics)
  • Re: X11Forwarding, ssh -X, and /bin/su
    ... ]>but I'm not really tunneled using ssh then, ... ]connecting to the X server and have the home directory NFS-mounted ... ](unless you leave root unmapped over NFS, ... ]root-readable place and set the environment $XAUTHORITY variable ...
    (comp.security.ssh)