Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Batch changing permissions for nested folders

Batch changing permissions for nested folders
Thread Tools
barbarian
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status: Offline
Reply With Quote
Nov 29, 2004, 10:50 PM
 
A buddy of mine on a Linux system has been painstakingly converting my and my girlfriend's collection of old jazz vinyl to MP3s. We have just started receiving the CDs of burnt files, but there's been one problem, the permissions are all screwed up.

The files are arranged with each album as a folder with all the files inside.

I believe all his folders and files are set to chmod 0555

I'm know nothing of unix but I believe I want all the folders at 764 and all the files at 644 (please correct me if I'm mistaken)... is there a simple way to run a unix command on the folder enclosing all 50 albums and hundreds of files and change everything in one fell swoop?

My job has been to scan album covers and I want to get them all in there....
     
utidjian
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Nov 30, 2004, 12:57 AM
 
Originally posted by barbarian:
A buddy of mine on a Linux system has been painstakingly converting my and my girlfriend's collection of old jazz vinyl to MP3s. We have just started receiving the CDs of burnt files, but there's been one problem, the permissions are all screwed up.

The files are arranged with each album as a folder with all the files inside.

I believe all his folders and files are set to chmod 0555

I'm know nothing of unix but I believe I want all the folders at 764 and all the files at 644 (please correct me if I'm mistaken)... is there a simple way to run a unix command on the folder enclosing all 50 albums and hundreds of files and change everything in one fell swoop?

My job has been to scan album covers and I want to get them all in there....
Nothing wrong with mode 555 on a CD. It makes no sense to have a mode of 6 or 7 in any filed on a CD. Why?.... because you can not write to a CD after it has been burned. It is also the "Rock Ridge Standard" for ISO9660 filesystems.

You can copy the files OFF of the CD and re-arrange the perms and then burn that to a different CD (or the same one if it is RW).

But to answer your question:

1. Copy everything from the CD to a folder called, say, Albums.

2. cd Albums

3. chmod -R 0644 *
which will make all files and folders mode 0644 recursively.

4. chmod 0764 *
which will make all folders within the Albums folder mode 0764.

5. re-burn

You may find that the permissions are all set back to 0555 after you burn it. It all depends on how controllable the image creation software is that you use.

Heh just noticed that this was my 555th post. (No pun intended )
( Last edited by utidjian; Nov 30, 2004 at 02:52 AM. )
-DU-...etc...
     
barbarian  (op)
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status: Offline
Reply With Quote
Nov 30, 2004, 02:30 AM
 
many thanks... painless and easy.

I actually was concerned about the files on my HD. I wanted to add artwork and itunes wasn't letting me because of the permissions.

life is good now.
     
Gavin
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Nov 30, 2004, 03:47 AM
 
Originally posted by utidjian:
..
Heh just noticed that this was my 555th post. (No pun intended )
That's just eerie.




Your 666th post should be about killing daemons that have gone zombie.


<-- z for zombie?
     
utidjian
Senior User
Join Date: Jan 2001
Location: Mahwah, NJ USA
Status: Offline
Reply With Quote
Nov 30, 2004, 10:16 AM
 
Originally posted by Gavin:
That's just eerie.




Your 666th post should be about killing daemons that have gone zombie.


<-- z for zombie?
More like everyone can read and edit my 666th post

If I ever get to my 127001th post it will never leave my computer.

(Only a geek gets excited about seeing their mileage roll over to 127001.)
-DU-...etc...
     
   
Thread Tools
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:57 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,