Re: no root shell access

From: Steven Hook (shook_at_bowens.co.za)
Date: 09/22/04

  • Next message: Stefan M.: "Re: Increase Keyboard buffer"
    Date: Wed, 22 Sep 2004 12:28:44 +0200
    
    

    "CSN" <cool_screen_name90001@yahoo.com> wrote in message
    news:5872245.0409220223.1effdd8f@posting.google.com...
    > I wanted to make it so that the root user couldn't telnet/ssh in. I
    > edited /etc/passwd and changed:
    >
    > root:x:0:0:root:/root:/bin/bash
    >
    > to:
    >
    > root:x:0:0:root:/root:/bin/nologin
    >
    > Then I saved and logged out. Turns out nologin is in /sbin, not /bin.
    > Now I can't "su" (or otherwise log in) to root. How can I fix this?

    can't you sart up in runlevel 1 and fix it?
    Steven


  • Next message: Stefan M.: "Re: Increase Keyboard buffer"