Solved

Linux ownerships

Posted on 2014-01-15
4
230 Views
Last Modified: 2014-01-15
I have mistakenly changed the ownership and group on an entire RHEL6 system rather than the subdirectory I wanted. I have since changed everything back to root:root.

Is this ok or am I still screwed?
0
Comment
Question by:cotton0226
4 Comments
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39782664
Is this ok or am I still screwed?

I hope you have a backup or can re-install the machine because well... You said it.

You might get somewhere by following this guide though, worth a shot:

http://www.adminlinux.org/2009/07/how-to-restore-default-system.html
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39782685
You better have a backup because you now have all kinds of issues including security apart from other issues.
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 39782736
you could use rpm to reverify the installed packages in hopes that it resets the ownership.

If you have an identical system, you could use getfacl to get the correct settings from a reference system and then use setfacl to correct the settings on this system.

Depending on what this system does, certain things may have broken i.e. no longer functioning because of the permissions issues.

Backup as others pointed out is the quickestw but make sure to copy anything you've added after as well as if this system is receiving external data (mail server) get that data off or you will loose it.
0
 

Author Closing Comment

by:cotton0226
ID: 39782768
Thanks all. We are reloading from backup.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question