Operating Systems > Linux and UNIX

Um, oops.

(1/5) > >>

Paladin9:
I fucked up the permissions on my linux machine.  Is there a way to reset the permissions or set them back to a previous state?  I am using slackware 9.1

savet:
You can us chmod to set permissions on files and directories.

But it might help to know a little bit more about the problem.  Which permissions specifically?

Paladin9:
I know how to set permissions.  Its just that (please forgive my stupidity) I set certian permissions on the usr directory and said "apply to all"

savet:
Unfortunately, I don't know of an easy way to restore default permissions.

I don't know if this is a viable option for you, but  if you have a spare partition, you could do another slackware install, mount your first install partition, and do a cp -r * to overwrite all of the default files.

Assuming you have the space to do a 2nd install....this presents a few problems.  First, the non-standard files in /usr will still have the permissions you set.  And second...you will lose any special settings you may have in any of these files.

Again...assuming this is even a viable option for you, the slower but safer way to fix the permissions is to browse the new /usr directory applying the appropriate chmod commands to the tainted directory.

Looking at my slackware /usr directory...it appears the vast majority of files and directories are 755 (rwxr-xr-x).  The quick fix would probably be to chmod everything to 755 and then change the files that need special permissions.

Not sure if it helps...but it's what came to mind at 2am with a lack of adequate rest....

Paladin9:
Well, doing all that stuff with another install sounds like too much of a pain in the ass.  I think some directories in /usr were set differently then others because I tried setting the /usr back to the way it was and I still am having problems.  Just to tell you what my problems are:  when it boots, I get wierd messages, but everything works fine.  However, I can only start x with root.  Any other user, and I just get errors.  I used to start x with other users up until I fucked with permissions and then it stopped working.  Now I can not get it to work again.

Navigation

[0] Message Index

[#] Next page

Go to full version