[Nelug] Sharing a cdrom over Samba - A How To

Tim tim at monkeyx.net
Fri Jun 6 18:09:09 UTC 2008


Well done on sticking with it. Hope you learnt something along the way :)

I started using Ubuntu because of the great community support!

Tim 

-----Original Message-----
From: nelug-bounces at mailman.lug.org.uk
[mailto:nelug-bounces at mailman.lug.org.uk] On Behalf Of Daniel Tweedy
Sent: 06 June 2008 08:52
To: North East Linux User Group mailing list
Subject: [Nelug] Sharing a cdrom over Samba - A How To

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.

_______________________________________________
Nelug mailing list   -   Nelug at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/nelug
http://www.nelug.org.uk/






More information about the Nelug mailing list