disabled root ssh access and my user had a uid 0

Support for webhosts that use CentOS
Post Reply
loininstreet
Posts: 1
Joined: 2012/04/09 18:05:06

disabled root ssh access and my user had a uid 0

Post by loininstreet » 2012/04/09 18:53:04

Hello, I made the mistake of disabling my remote ssh root access not aware that my user that I was going to use to ssh in and then su to root was also root. Now I am locked out of
my remote server. Are there any tricks or backdoor I may not be aware of. I am pretty new to linux also.

Thanks for any help.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

disabled root ssh access and my user had a uid 0

Post by pschaff » 2012/04/09 19:47:48

Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Are there any other users defined? Do you have physical access to the system, or have someone else who can access it for you? Can you boot to single user mode, or from rescue media?

Lesson #1: Do not make a user with UID 0. That completely defeats the purpose of having a non-root user. Use a user with a normal UID (>= 500) and [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]become root[/url] as required.

Post Reply

Return to “CentOS 5 - Webhosting Support”