no root shell access
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > no root shell access




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    no root shell access  
CSN


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:31 PM

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?





[ Post a follow-up to this message ]



    Re: no root shell access  
Steven Hook


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:31 PM


"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







[ Post a follow-up to this message ]



    Re: no root shell access  
Ivan Marsh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-04 02:31 PM

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.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register