[CentOS 6.2] Help, need file perm list please
February 06th, 2012 - 01:57 am ET by Ohmster | Report spam
Okay, it was late, I did something really, really stupid, and although I
have it somewhat cleaned up, I will never get this back without help.
What I did: Opened an ssh term window to my beautiful new CentOS 6.2
system and became root user, to save time instead of using sudo for
getting my web server setup. Yeah, I did "su-" and gave the password to
get a full # prompt. This is not so bad if used judiciously, but it was
late and I was tired.
I wanted to open up my root ftp and web for public use and instead of
changing perms on the html and ftp directories, like a total dumbass I
did this, from the root filesystem. "/"
#chgrp -R ohmster var
#chmod -R 755 var
OMG! What have I done?! Yep, messed it up quite bad. Fixed most of it
with some reset gid and permission with rpm commands, but not all of it.
These web pages got me pretty far, especially the first one.
http://www.cyberciti.biz/tips/reset...kage-file-
permission.html
http://wiki.centos.org/TipsAndTrick...dRPM#head-
20a3ecce3d0762b9cdd3307ef2632e0c274a2bfd
They tell how to use rpm to reset the permissions of the all installed
RPM packages. I did both as root and this helped, a LOT, but I could not
even use locate as a non-root user because the perms were just not right.
Access to the locate database denied. For the time being I gave 777
permission to /var/lib/mlocate. It works now, but I am ready to cry about
this, I had it all so perfect and had not worked out a backup of the
system yet. (Money is tight, I need at least a 500Gb to 1Tb drive, either
internal or external to backup to.)
I googled all over, just trying to find a basic CentOS-Fedora-RHEL system
map of what the ownership, groups, and permissions are in the /var tree
to no luck. I found how to generate one (although it prints to the
screen, putting a > varperm.txt did not allow the command to run.
Can someone, anyone, with a CentOS 6.2 or anything similar, please,
PLEASE make me a map of their /var tree? I found out how to do it from
this webpage, apparently this really dumb mistake is not all that
uncommon.
http://www.linuxquestions.org/quest...oring-var-
permissions-472421/
Find someone with a similar distro installed and run this:
# ls -alR /var
This prints out every directory, file, and link, with owner, group, and
permissions. It prints the whole mess to the screen. I do not know why a
redirect with a > would not save it to a file, but maybe one of you guys
know how?
I need this list PLEASE. Then if I have to, I can restore all perms and
groups by hand, even if it takes a long time. Without it, I am sunk.(I
tried doing this by hand with my old FC16 system disk, but that was a 4
distro amalgamated mess and things were just not the same.)
I got a lot on my mind right now, personal issues. My brother is stuck in
Panama because the indians shut down all roads to force the government to
give them ALL mineral rights so he is a hostage in a foreign country for
a few days already, unemployed and doing anything I can to try and get
all bills paid, and have health issues. So tie me to a steak and throw
rocks if you must, but can you at least make them very, very small rocks?
(...please? Or maybe some foam packing peanuts would be nice.) Thank you.
(Email address in sig works if you do not or would rather not print your
var system map in Usenet.)
~Ohmster | ohmster59 /a/t/ gmail dot com
have it somewhat cleaned up, I will never get this back without help.
What I did: Opened an ssh term window to my beautiful new CentOS 6.2
system and became root user, to save time instead of using sudo for
getting my web server setup. Yeah, I did "su-" and gave the password to
get a full # prompt. This is not so bad if used judiciously, but it was
late and I was tired.
I wanted to open up my root ftp and web for public use and instead of
changing perms on the html and ftp directories, like a total dumbass I
did this, from the root filesystem. "/"
#chgrp -R ohmster var
#chmod -R 755 var
OMG! What have I done?! Yep, messed it up quite bad. Fixed most of it
with some reset gid and permission with rpm commands, but not all of it.
These web pages got me pretty far, especially the first one.
http://www.cyberciti.biz/tips/reset...kage-file-
permission.html
http://wiki.centos.org/TipsAndTrick...dRPM#head-
20a3ecce3d0762b9cdd3307ef2632e0c274a2bfd
They tell how to use rpm to reset the permissions of the all installed
RPM packages. I did both as root and this helped, a LOT, but I could not
even use locate as a non-root user because the perms were just not right.
Access to the locate database denied. For the time being I gave 777
permission to /var/lib/mlocate. It works now, but I am ready to cry about
this, I had it all so perfect and had not worked out a backup of the
system yet. (Money is tight, I need at least a 500Gb to 1Tb drive, either
internal or external to backup to.)
I googled all over, just trying to find a basic CentOS-Fedora-RHEL system
map of what the ownership, groups, and permissions are in the /var tree
to no luck. I found how to generate one (although it prints to the
screen, putting a > varperm.txt did not allow the command to run.
Can someone, anyone, with a CentOS 6.2 or anything similar, please,
PLEASE make me a map of their /var tree? I found out how to do it from
this webpage, apparently this really dumb mistake is not all that
uncommon.
http://www.linuxquestions.org/quest...oring-var-
permissions-472421/
Find someone with a similar distro installed and run this:
# ls -alR /var
This prints out every directory, file, and link, with owner, group, and
permissions. It prints the whole mess to the screen. I do not know why a
redirect with a > would not save it to a file, but maybe one of you guys
know how?
I need this list PLEASE. Then if I have to, I can restore all perms and
groups by hand, even if it takes a long time. Without it, I am sunk.(I
tried doing this by hand with my old FC16 system disk, but that was a 4
distro amalgamated mess and things were just not the same.)
I got a lot on my mind right now, personal issues. My brother is stuck in
Panama because the indians shut down all roads to force the government to
give them ALL mineral rights so he is a hostage in a foreign country for
a few days already, unemployed and doing anything I can to try and get
all bills paid, and have health issues. So tie me to a steak and throw
rocks if you must, but can you at least make them very, very small rocks?
(...please? Or maybe some foam packing peanuts would be nice.) Thank you.
(Email address in sig works if you do not or would rather not print your
var system map in Usenet.)
~Ohmster | ohmster59 /a/t/ gmail dot com
Similar topics
- [Samba] Setting up Samba and CentOS 6.2 IPA
- Bug#691665: linux-image-2.6.32-5-amd64: Under CentOS 6.3 as a host OS Debian kernel hangs as a guest OS (KVM-QEMU)
Make your own search :
Tags
Create a new topic
Follow the discussion
11 replies
Make a reply
May 23rd, 2013 - 9:43 AM ET
Join now


Replies