|
|
What might a guru type when mounting a disc? |
One can use the '-o < option_args >' argument to the mount command to do useful things like disallowing SUID, setting r-xr--r--, and converting caps to lower-case, as in:mount -r -F cdfs -o nosuid,dperm=544,nameconv=l /dev/cdrom/cdrom1 /mntOne could make a shell alias or function that command in their .profile so as to make it easily available to ksh, or bash, as in: alias mcd1=" ... "
mcd1() { mount -r -F cdfs /dev/cdrom/cdrom1 /mnt && echo "Cd mounted.\n" ;}
From the mount(1M) page, 'The CDROM media may or may not have values set for items such as
the User ID (UID), Group ID (GID), permissions, etc. If a value
is not recorded on the CDROM, a default value is assigned by the
software. The default value is either taken from the
/etc/conf/pack.d/cdfs/space.c file, or from the value specified
with the -o option of the mount command.'
'mkisofs,' part of the cdrecord tools on Skunkware or OLSS CD, properly writes the permissions when creating the ISO image.
<mschalit@pacbell.net>
| |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||