LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2003, 05:49 PM   #1
figmentium
Member
 
Registered: Mar 2002
Location: Alberta, Canada
Distribution: Debian 4.0 Etch
Posts: 64

Rep: Reputation: 15
what are the default permissions


Hello, welcome to a noob disaster!

I am running RedHat 8 and I did something terrible. I was trying to set directory permissions for someone and their webfiles and by accident i put something like chown blah:blah /* not realizing what i typed until after i pressed enter.

So to *attempt* to fix this, I chown root:root /* to put it back... THEN realizing that, oh ya the system has different ownerships probably deeper in the system somewhere...and now my mysql doesn't work. and I fear other things might stop working. ACK!

ONLY a noobie like me could do this!

All I need is a list of the stock permissions that RedHat 8 comes with or find out how to fix this.... other than reformatting and starting over...

if i had to reformat and start over... i cant connect to my mysql to get my databases out is there a way to retrieve them? ARGH!!

thanks so much for any help
 
Old 12-23-2003, 08:04 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
GOOD NEWS....

unless you passed -r or -R as a parameter to chown (r for recursive)
then only the files and folders directly in / have been modified.
non of the sub directories hav been touched...

so the command chown root /* will fix it
 
Old 12-23-2003, 08:05 PM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
ohh, and you havent changed any permissions...
chmod changes permissions, you just changed the files ownership.

everything is owned by root (except whats in your /home/ directory) and maybe a few /tmp/ and /var/ stuff (not important)
 
Old 12-23-2003, 11:05 PM   #4
figmentium
Member
 
Registered: Mar 2002
Location: Alberta, Canada
Distribution: Debian 4.0 Etch
Posts: 64

Original Poster
Rep: Reputation: 15
oh wow, that all? i'm glad root owns everything haha

still...mysql decided not to start... so i went and reformatted anyway

though, this is still really good to know

thanks
 
Old 12-25-2003, 06:50 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
lol yeah....

i know its wrong, but when it takes 20 mins to do a complete re-install and
re-configure of linux, there's not much point in spending half an hour fixing it
(unless you wanna learn, but im lazy)
 
  


Reply



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
default permissions crane Linux - Security 1 01-01-2005 12:36 PM
Oh no! Default permissions? Loiosh Fedora 5 12-17-2004 11:35 PM
default permissions skel Linux - Security 1 12-14-2004 06:27 PM
what are default permissions for /etc timsch75 Slackware 2 08-06-2004 10:34 PM
Need someone to let me know certain default permissions. Nu-Bee Linux - General 2 11-27-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 PM.

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