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

)