Jump to content

Could somebody please clue me in on permissions?


Guest klinger2004
 Share

Recommended Posts

Guest klinger2004

I am trying to empty my trash - these were files that were copied from a cd. Since I am the only person that uses my pc, I ran a chmod 777 * command because by default these files were not writable. The chmod command works fine - but not on subdirectories and sub-files. Is there a "god mode" for this kind of thing? My trash bin will not empty because some files are protected and i don't have the energy to chmod about one hundred different directories so that I can delete the stuff. Thanks in advance!

 

Eric

Link to comment
Share on other sites

Eric, the standard help page is man, so:

 

man chmod

 

would give you lots of info on chmod (recursive being the key here for chmod -R), or indeed

 

chmod --help

 

from the command line.

 

Incidently, can't you just delete all the files as root??

Link to comment
Share on other sites

Guest klinger2004

hmmmm... not exactly sure. I did a ls -l and it showed "eric" as the owner of all the files. I didn't try it. Would I do a rmdir from my .Trash directory ... a rmdir * perhaps?

 

Thanks for the input!

Link to comment
Share on other sites

Guest klinger2004

Now it may seem that I fouled things up a bit...

 

I believe that I have typed chmod -R 777 * at the / directory (which I intended to at .Trash).

 

I am ASSuming that this is not good because when I log out from init5 to init3 I get an error "permissions error in pam_timestamp_check" and a couple about a floppy "leak". I tried to save the errors but wasn't successful :cry: - in init3 I selected all of the text - typed "touch errors.txt", then "vi errors.txt", hit insert and hit my 3rd mouse btn to paste - but for one reason or another - it didn't work, I will try again to recreate the errors......

 

Please don't flame me for this - but is there now a way to set my permissions back to their default setting?

 

Thanks

Eric

Link to comment
Share on other sites

it will be very hard to recover from this as there will have been several settings for all the different types of files. 644, 755, etc.

 

in future always make sure you throw in an i in rm -rf * (rm -rfi *) this way you should recognize that you have screwed up.

 

as for getting rid of files that have root only grouping or permissions that is what sudo and su are for.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...