LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-09-2013, 12:22 PM   #1
charliebird
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
changed permissions of /etc directory


Hi,
Don't ask why but I changed the permissions on the entire /etc directory. This now means that no one (not even root) can access the server. I have tried using a Live CD but when I do so, I am not able to mount the hard drive to change the permissions. (not sure what they should be changed to even?)
Any advice on a solution is much appreciated.

Best
Charlie
 
Old 01-09-2013, 12:50 PM   #2
Luiz_andrade
LQ Newbie
 
Registered: Nov 2012
Distribution: Debian 6
Posts: 7

Rep: Reputation: Disabled
Try to use Knoppix!
 
Old 01-09-2013, 09:26 PM   #3
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,562

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
To build on what Luiz_andrade said, Knoppix is a Live CD that can be used for maintenance and rescue.

The idea is to boot to the CD, mount the hard disk, chroot the root directory of the hard disk, then fix the permissions issue.

You can find Knoppix here. If you already have a CD of something that will allow you to boot to a live session, you can use that.
 
Old 01-09-2013, 09:47 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,515
Blog Entries: 2

Rep: Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018Reputation: 4018
Quote:
Originally Posted by charliebird View Post
Hi,
Don't ask why
Hey where is the fun in that?

Quote:
I am not able to mount the hard drive to change the permissions.
What exactly does that mean? Which error messages do you get?

Do you have a backup of the server, so that you can restore the directory?
 
Old 01-10-2013, 02:41 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Which distro is this? rpm based systems can use http://www.cyberciti.biz/tips/reset-...ermission.html to fix that kind of issue.
 
  


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
Finding who changed directory permissions shawn.abdushakur Linux - Server 5 10-29-2012 11:32 PM
my user's home directory permissions have been changed darin722 Linux - Security 5 11-03-2007 06:24 PM
changed permissions shosh Linux - General 3 11-02-2004 05:07 AM
we changed permissions on the etc directory and now we can not log in vinces39 Red Hat 1 06-18-2004 10:20 AM
Permissions changed crashmeister Linux - Security 3 11-13-2002 07:57 AM


All times are GMT -5. The time now is 07:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration