Sharing CD-ROM over Samba on Fedora 8
Mikkel L. Ellertson
mikkel at infinity-ltd.com
Thu Jun 5 22:35:28 UTC 2008
Daniel Tweedy wrote:
> Thank you for the reply but it didn't work, the problem I think I am
> having is one of it not mounting and unmounting the cdrom.
>
> Fedora 8 mounts the cdroms in the /media folder however a folder with
> the name of the cdrom shows up there, i.e. say for example I had a cdrom
> with the name "FedoraList" I would have /media/FedoraList in that folder
> which makes it difficult to share the cdrom drive itself.
>
> Also would it be possible for someone to explain this to me as I didn't
> understand it :-
>
> # If you want to run scripts (preexec/root prexec/print command/...) please
> # put them into the /var/lib/samba/scripts directory so that smbd will be
> # allowed to run them.
> # Make sure you COPY them and not MOVE them so that the right SELinux
> context
> # is applied, to check all is ok use restorecon -R -v
> /var/lib/samba/scripts
>
> I dont understand where to get the scripts from to put them in that folder.
>
> I am using ;-
>
> root preexec = /sbin/mount /media/cdrom
> root postexec = /sbin/umount /media/cdrom
>
You may want to look at automount. You can set it up so that when
you try to access /mnt/cdrom it auto-mounts the CD for you.
I have used it in the past to mount CD-ROM images, but it can mount
a real CD as well. (Loop mounting 20 or more CD images at one time
does not work so well...)
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080605/38019769/attachment-0001.sig>
More information about the fedora-list
mailing list