LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-10-2012, 11:17 PM   #1
itdungpt
LQ Newbie
 
Registered: Feb 2012
Posts: 20

Rep: Reputation: Disabled
restore chown default centos


i use centos with cpanel

i was user chown -hR user:user /

then
chown -hR root.root /

server error.

please help me restore chown default centos
 
Old 03-11-2012, 03:05 AM   #2
linoseros
LQ Newbie
 
Registered: Feb 2012
Posts: 11

Rep: Reputation: Disabled
as far as I know that's not possible. sorry
 
Old 03-11-2012, 05:39 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by itdungpt View Post
please help me restore chown default centos
Distributions using the RPM package manager can recover permission settings from the RPMDB running 'rpm' with the "--setperms --setugids" switches. The problem is you have to run the process as root user. If no root shell remains open or can be opened then you could check if you can alter a crontab that runs processes as root. If that doesn't work and you don't have Out of Bounds access then you probably have to ask your hosting company to restore a backup for you.


Quote:
Originally Posted by itdungpt View Post
i use centos with cpanel (..) chown -hR root.root /
You realize now that root is omnipotent and that you should not run commands you don't understand the consequences of. Also be aware that being able to click buttons in a web-based management panel does not make you an admin. I strongly suggest you read some basic "Learning the Linux Command Line" tutorials and the standard documentation that Centos comes with to avoid fscking up like that again. You may think that it's all OK since it's your server but Linux is the networked OS. So what goes wrong with or behind your lines of defense may adversely affect others on the 'net as well.

Linux may be free to use but using it is not free of responsibilities.
 
  


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
restore original chown permissions on VPS Centos chetanmadaan Linux - Newbie 3 06-30-2010 08:37 AM
chown and/or chmod to restore permissions on files moved from another drive by root. Shay Linux - General 4 04-12-2007 08:47 AM
How do I restore K3B to default? snatale1 Linux - Software 5 05-25-2004 08:54 PM
Restore default permissions scotcro Linux - Newbie 1 01-21-2003 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:36 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
Open Source Consulting | Domain Registration