|
Home > Archive > Red Hat Topics > September 2004 > no root shell access
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
no root shell access
|
|
|
| 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?
| |
| Steven Hook 2004-09-23, 9:31 am |
|
"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
| |
| Ivan Marsh 2004-09-23, 9:31 am |
| On Wed, 22 Sep 2004 03:23:08 -0700, CSN wrote:
> 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?
Uh, I'm sure you've figured this out but, that's not the correct way to
prevent root from telnet/ssh.
--
i.m.
The USA Patriot Act is the most unpatriotic act in American history.
|
|
|
|
|