On 18 Apr, Christian Hudon wrote: > On Apr 18, Philippe Troin wrote >> Yes, of course. Pick a GID, replace /dev/fd0 by /dev/cdrom (or >> whatever the cdrom device is), and replace the gid=25 by something >> else. > Hmm. There's one slight problem. It doesn't work. :)
> First, there's no mention of 'umask' under the mount manpage, so that's > kinda suspicious. And I tried both umask (on a RockRidge CDROM) and mode > (on a plain CDROM)... and they don't work. All the files still come out as > 444. I'm running Linux 2.0.30, if that makes a difference. > Basically, I don't care very much about the permissions of the files under > the mountpoint. What I'd want is a way to force the mountpoint to a given > uid/gid and permissions upon mount. Doesn't look like that's possible. You can force the mountpoint to uid and gid (non-Rock Ridge, RR will keep the normal settings of the mountpoint, so change that directly with ch[mod|own|grp]), but it seems setting the permissions of the mount point (and underlying directories) can't be done (non-RR sets 444 for files and 555 for dirs/mountpoint). Setting the permissions of the actual _files_ on the CD (non-RR) can be done with the mode=xxx BEWARE! As far as I can see the mode is interpreted as decimal numbers and then converted to octal!!!! mode=506 gave rwxrwx-w-, 505 gave rwxrwx--x !!! It would seem that there's no way to prevent users from at least listing the files on the CD (non-RR), although they might be prevented from reading the contents of the files. /Michael -- | Linux: Turn on...Tune in...Fork out... | | Michael Tempsch, member of Ballistic Wizards, TIP#088, TDGP#20 | | [EMAIL PROTECTED] | [EMAIL PROTECTED] | [EMAIL PROTECTED] | | Cell.Phone:+46 705487554 URL:http://www.dtek.chalmers.se/~d1temp | -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

