Solved

Linux ownerships

Posted on 2014-01-15
4
224 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 76

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Best Linux Distro for this software 10 58
Parse DNS log 3 33
PC upgrade to Linux Mint 7 35
gdb doesn't stop on breakpoint 2 7
In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now