Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba won't let autofs unmount cdrom
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
random-feed
n00b
n00b


Joined: 12 May 2005
Posts: 20

PostPosted: Fri Jun 24, 2005 2:55 pm    Post subject: Samba won't let autofs unmount cdrom Reply with quote

Greetings, all!

I just looked into autofs and got it working on both my desktop and an ancient box I use for a home router.

I wanted to share (with samba) the cdrom device on the latter, so other stations can use it (would be handy for copying CDs or just having an extra cd reader in the house). I configured autofs to mount the cdrom and added a share in smb.conf. Voalla, I was able to access the cdrom via smb://192.168.0.1/cdrom. I set the timeout to 5 sec, and I expected autofs to umount it if the share is not accessed. Alas, it did not. It takes a restart of samba to do this.

I am certain that no clients are hooked to the share at the moment. Is there a way to tell smbd to leave it alone? Ideas?

Code:
#
#  /etc/autofs/auto.master
#
/misc   /etc/autofs/auto.misc --timeout=5 --ghost


Code:
#
#  /etc/autofs/auto.misc
#
cd              -fstype=iso9660,ro      :/dev/cdrom


Code:
#
#  /etc/samba/smb.conf
#
[global]
workgroup = JV
server string = pancho
wins support = no
netbios name = pancho
printcap name = cups
load printers = yes
printing = cups
log file = /var/log/samba3/log
max log size = 50
log level = 3
hosts allow = 192.168.0. 127.
map to guest = bad user

[cdrom]
 browseable = yes
 writable = no
 guest ok = yes
 path = /misc/cd


And an off-topic question: How should fstab lines for autofs-managed devices look like? Should there be any?
_________________
If in doubt, mumble.
Back to top
View user's profile Send private message
random-feed
n00b
n00b


Joined: 12 May 2005
Posts: 20

PostPosted: Fri Jun 24, 2005 3:41 pm    Post subject: Reply with quote

OK, guess this was a stupid question.

I solved it by sharing /misc instead of /misc/cd

Still, if someone can think of a better way, feel free to PM or post here :)
_________________
If in doubt, mumble.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum