[Nelug] Sharing a cdrom over Samba - A How To
Daniel Tweedy
daniel.tweedy at gmail.com
Fri Jun 6 07:51:42 UTC 2008
Hi All,
After much blood, sweat and some tears I have finally won and got the
cdrom to share on fedora, but I believe this will work on all distros.
Firstly edit the /etc/fstab file to have the following in it :- (note:
you may need to change the path in the first column, not sure what its
called tho, partition maybe?)
/dev/sr0 /media/cdrom auto pamconsole,exec,noauto,managed 0 0
Next I fiddled and played around with the original smb.conf I posted here.
[cdrom]
comment = Linux CD-ROM
path = /media/cdrom
read only = yes
locking = no
root preexec = /bin/mount /media/cdrom
root postexec = /bin/umount /media/cdrom
I also had to create a new directory called cdrom inside of the /media
folder.
Do all the above and I believe it will all work fine, it takes a few
seconds to mount and unmount, but once you exitted the folder a few
seconds later you can eject the cd.
Was just looking back on some of the mails and suggestions and I noticed
that Tim had suggested the above part for samba, so I was halfway there
and never realised it ah well not to worry its all up and running and
working great now.
Note: I did this on Fedora 8 as Fedora 9 xfce was really really lagging
on my poor little 1ghz mini-itx box.
p.s. No offence meant but the fedora-list people are a bit of a strange
bunch of people, some guy suggested that I copy my cdrom to the hard
drive and then share that o.O others told me to change the security
settings.... I tried that but didn't see what that had to do with
sharing a cd drive.
More information about the Nelug
mailing list