[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automounting CD-ROMs and Samba 2.0.5a



hi ya Nils

http://www.linux-consulting.com/Amd_AutoFS/autofs-HOWTO.html

have fun
alvin

> --4LwthZj+AV2mq5CX
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: quoted-printable
> 
> On Mon, Sep 06, 1999 at 09:21:25PM -0400, Alec Smith wrote:
> > I've got a Debian 2.2 machine running Samba 2.0.5a that I'd like to share
> > a CD-ROM drive from. Basically I'd like to have the CD-ROM mount and
> > unmount before and after usage. So far I can get the drive to mount
> > automatically using the exec option in Samba, however no files are visable
> > from Windows -- Only if I TELNET to the machine and look at the mount
> > point.
> >=20
> > Does anyone have a suggestion on how to set the exec and postexec options
> > so they'll actually work with a Debian system?
> I suggest to use autofs:
> 
> Install the autofs module by including a line
> autofs
> in /etc/modules and say
> # modprobe autofs
> 
> Now install the autofs tools with
> apt-get install autofs
> 
> Finally Put a line like the following in /etc/auto.master:
> 
> /m /etc/auto.removable -t5
> 
> and create a file in /etc with
> ------------ snip --------------
> # This is an automounter map and it has the following format
> # key [ -mount-options-separated-by-comma ] location
> # Details may be found in the autofs(5) manpage
> 
> cd         -fstype=3Diso9660,ro                      :/dev/scd0
> floppy     -fstype=3Dvfat,quiet,gid=3D25,umask=3D002     :/dev/fd0
> zip        -fstype=3Dvfat,quiet,gid=3D25,umask=3D002     :/dev/hdc4
> ------------ snap --------------
> You need to modify the devices to suit your environment of course.
> 
> Now create the mountpoint=20
> # mkdir /m
> and start the autmomounter with
> # /etc/init.d/autofs
> 
> The path to your cdrom is now /m/cd, which is what you will need for the=20
> "path" setting in /etc/smb.conf
> 
> I never could make the sambe exec option work and this has the added bonus
> to work for local users too and also for several users at once.
> 
> Nils
> 


Reply to: