PDA

View Full Version : [ubuntu] Changing Folder Permissions



uRock
April 11th, 2010, 07:15 PM
I am having an issue with folder permissions. When I right-click on my Music folder and click properties, then permissions. It shows --- in the File Access permissions for owner. I recently copied all of the files from it onto another machine and most of the subfolders would not copy do to lack of permission. When I try to change the --- to read and write, then click "Apply Permissions to Enclosed File" the access returns to ---. I have also tried doing this to the individual file folders that have refused to copied and the access field does the same thing of returning to --- instead of changing the permissions. I have also tried the same things while running gksu nautilus and that didn't work. What do i need to do in order to make these files sharable to my other system?

Thanx,
Ronnie

new_tolinux
April 11th, 2010, 07:23 PM
Go to the folder in terminal and execute

chmod -R 770 *That way you set read/write/execute for the user, read/write/execute for the group and none for "the rest of the world".

Edit:
If that doesn't work try using it with sudo.

uRock
April 11th, 2010, 08:02 PM
Go to the folder in terminal and execute

chmod -R 770 *That way you set read/write/execute for the user, read/write/execute for the group and none for "the rest of the world".

Edit:
If that doesn't work try using it with sudo.

I think I need a different chmod #, the command ran perfectly, but I can't access the folders from the network at all now.

Thanx,
Ronnie

new_tolinux
April 11th, 2010, 08:12 PM
Maybe you can do

chmod -R o+r *
in the same folder. It will grant read-access to "everyone".

Maybe you'll even have to change ownership:

chown -R youruser:yourgroup *
But I'll think the first command will do. And again: if it doesn't work, try sudo.

uRock
April 14th, 2010, 12:21 AM
Still isn't working.:confused: