LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-10-2014, 03:22 AM   #1
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Rep: Reputation: 2
Locked up my server because of chmod 600 / (!)


Hi,

I made an horrible mistake while adding a new account's ssh keys and fixing the file's permissions. I wanted to type "sudo chmod 600 ." and wrote "sudo chmod 600 /", resulting in an rapidly unreachable server because of widespread permissions issues.

The (remote) server can only be accessed through ssh with public key authorisation. In the case I could gain access to it through a KVM (I'm dealing this with my provider), what are my options to fix this mistake ?

Thanks for helping me fixing this disaster :-(

Matthieu
 
Old 04-10-2014, 03:51 AM   #2
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Hmm.. The good news is that you didn't use recursion..

So this should work (as root, but he's the only user that can login right now anyway):
Code:
chmod 755 /
 
Old 04-10-2014, 04:22 AM   #3
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Original Poster
Rep: Reputation: 2
Thanks Smokey !

Do I have any chance to login remotely using root even with the public key authorisation messed up ? (I can't test right now). I didn't configured this server so I don't know exactly its settings.
 
Old 04-10-2014, 04:34 AM   #4
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
If root logins are enabled (which they shouldn't be) and you have a ssh key already setup in root authorized keys file (which you shouldn't have), then yes.. ssh shouldn't complain about it and root isn't limited by access permissions..
 
Old 04-10-2014, 03:27 PM   #5
mgai7755
Member
 
Registered: Apr 2011
Posts: 41

Original Poster
Rep: Reputation: 2
WORKING ! Thanks really !
Matthieu
 
Old 04-10-2014, 04:04 PM   #6
Smokey_justme
Member
 
Registered: Oct 2009
Distribution: Slackware
Posts: 534

Rep: Reputation: 203Reputation: 203Reputation: 203
Glad it helped you
 
Old 04-10-2014, 04:05 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by Smokey_justme View Post
If root logins are enabled (which they shouldn't be) and you have a ssh key already setup in root authorized keys file (which you shouldn't have), then yes
LOL

That made me chuckle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The OpenBlockS 600 is a Linux server that fits in your palm LXer Syndicated Linux News 0 10-02-2009 01:20 PM
Apache: difference between chmod 644 and chmod 666 and chmod 600 for output/txt/dat? frenchn00b Programming 6 04-22-2009 02:10 PM
Server almost locked! Torquemalex Linux - Server 3 08-25-2008 09:42 AM
NTFS under Linux: Locked & chmod: Operation not supported unihiekka Linux - Security 6 08-26-2005 10:07 AM
Locked out of my server sfcgunner Linux - Networking 17 08-01-2004 06:44 PM


All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration