[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: File permissions when copying CD's?



On 03-Dec-1999, Svante Signell <svante.signell@telia.com> wrote:
> Hi,
> 
> When copying a CD to a writable CD the source file gets mounted
> read-only, i.e. all files do not have a write flag set. Writing this
> image to a new CD results in a corrupt copy. How to change this
> behaviour? I'm using gtoaster, cdrecord, ...
> 
> Any good ideas, perhaps this is an FAQ?
> 
I assume you are using mkisofs to create the filesystem, just pass -r to
achieve the following

-r     This is like the -R option, but file ownership  and modes
       are  set to more useful values.  The uid and gid are set to zero,
       because they are usually  only useful  on  the author's system,
       and not useful to the client.  All the file read bits are set
       true, so that files and directories are globally readable on the
       client.  If any execute bit is set for a file, set all of the
       execute bits, so that executa­ bles are globally executable on
       the client.  If any search bit is set for a directory, set all of
       the search bits, so that directories are globally search-able on
       the client.  All write bits are cleared, because the CD-Rom will
       be mounted read- only in any case.  If any of the special mode
       bits are set, clear them, because file locks are not useful on a
       read-only file system, and set-id bits are not desirable for uid
       0 or gid 0.

I am not sure if this information is what you are after.

Pete


Reply to: