Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RedHat 9 - Stupid Mistake - permissions 3

Status
Not open for further replies.

devilman0

IS-IT--Management
Nov 14, 2002
257
US
I really hosed this one gus. I (in a late night session with my RH9 box) chmod -c -r 777 /etc and /var. Now gnome, ssh, and mysql are broken :(. All aside. What is the normal default permissions for these directories? gnome is saying 750, so i set it's path to that, but ssh doesn't tell me what? also mysql complains about permissions being too lax and ignors the config file. (makes sense).
I guess my questions are two fold:
a) I couldn't find any kind of listing for permissions required for the folders. Anyone know of a source?
b> Am i soo screwed that even a repair-install won't fix it?

Thanks for this dumb noob mistake
/me hangs his head in shame.

Thanks,
James
[afro][mad]
"Make it idiot-proof and someone will make a better idiot." ~bumper sticker
 
If it makes you feel any better, I did this once after having a few too many beers. That's when I made &quot;Don't Drink And Root&quot; my motto (also see 'Admins Against Drunk Adminning'). But mine was 'chown -R <user> .. /' (notice that extra space). So, after about 2 minutes of disk-churning, I figured something was wrong. Then the crying started (Newbs: this is the kind of thing that makes the old farts say 'do not run as root unless you absolutely have to' ;-) ).

I have posted an 'ls -lARh' of my /etc/ssh, /var/lib/mysql, and then /etc to It's off the / of my Redhat 9 partition, so should give you whatever you need. You can either 'gunzip devilman0.gz', or 'gzcat devilman0.gz', whatever floats your boat.

Good Luck :)

P.S.: To newb coders, don't make the mistake of cleaning up your object files with 'rm -f * .o' (extra space again!). That can instantly waste your hours of patch applying to your precious codebase. Create a Makefile and do a 'make clean' instead ;-)

----
JBR
 
I knew not to root all the time, but i was trying to remote admin the machine, and was having trouble copying/changing config files as normal user (from windows through samba) so being lazy, (and not understanding the implications of a system wide 777) i did that, and was able to change the config settings. But we see that i screwed the system good by doing that. :-/ but, we live and learn. You both get a star.

Thanks,
James
[afro][mad]
&quot;Make it idiot-proof and someone will make a better idiot.&quot; ~bumper sticker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top