[Samba] Samba cd-rom share Problem

John H Terpstra jht at samba.org
Tue Dec 27 15:48:16 GMT 2005


On Tuesday 27 December 2005 08:38, Andreas Bauer wrote:
> Hello NG,
>
> my network consists of AD/2003 as LDAP Server, SuSE 10.0 and xp
> clients and SuSE 9.3 Samba/NFS-Fileserver for the homes of SuSE clients and
> Samba
> shares for the Xp clients.
> My problem is the cd-rom samba share. All other samba shares except the
> cd-rom share are working for me.
> If I open the network environment in the windows explorer of a succeded
> logon xp client, I can access all shares except the cd-rom share.
> At accessing the cd-rom share in the windows explorer, I am getting no
> errormessage, but the directories and files of the shared cd do
> not appeare in the right side side of the win explorer. The right part of
> the
> windows exlorer is empty.
>
> The cd-rom section in the smb.conf is:
> [cdrom]
>    path = /media/cdrom
>    read only = yes
>    browseable = yes
>    locking = no

Add:

	root prexec = /bin/mount /dev/cdrom /media/cdrom
	root postexec = /bin/umount /media/cdrom

That should solve the problem.

- John T.


More information about the samba mailing list