PDA

View Full Version : [ubuntu] [SOLVED] permissions trouble



person8451
November 11th, 2008, 09:52 PM
I have been searching around here and have not yet found a way to change permissions on a bunch of folders at once. I have a bunch of folders in Music that I would like to be able to move/delete/whatever, and the only way I can do it now is to "gksudo nautilus" and change them one at a time.

Every time I copy a music file I have saved on CD/DVD, it acts like this. I don't know if I am doing it wrong or what. It seems weird that I cannot just "own" the damn things to begin with.

Anyhow, if there is some way to quickly claim ownership of everything in my Music folder, that would save me much hassle. I can do it one folder at a time if I have to, but I am hoping there is a command that will accomplish it faster.

(Hardy 8.04 btw)

MuH4hA
November 11th, 2008, 09:55 PM
You can do this with


chown username -R /home/yourmusicfolder to get ownership and


chmod -R 755 /home/yourmusicfolder to change permissions

newbee70
November 11th, 2008, 09:56 PM
I have been searching around here and have not yet found a way to change permissions on a bunch of folders at once. I have a bunch of folders in Music that I would like to be able to move/delete/whatever, and the only way I can do it now is to "gksudo nautilus" and change them one at a time.

Every time I copy a music file I have saved on CD/DVD, it acts like this. I don't know if I am doing it wrong or what. It seems weird that I cannot just "own" the damn things to begin with.

Anyhow, if there is some way to quickly claim ownership of everything in my Music folder, that would save me much hassle. I can do it one folder at a time if I have to, but I am hoping there is a command that will accomplish it faster.

(Hardy 8.04 btw)

I'm just a noob so take this with a grain of salt.

Have you checked out the man page for chown -R

W.

Dang, beat out by MuH4hA

Coreigh
November 11th, 2008, 10:02 PM
Chown will set the owner, but if you are trying to grant permissions to other users or a network share you will want to look at chmod as well.
man chmod

in terminal window or in Google.

person8451
November 11th, 2008, 10:07 PM
Thanks that did it. :)