View previous topic :: View next topic |
Author |
Message |
demidrol n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Feb 2007 Posts: 5
|
Posted: Tue Oct 16, 2007 8:51 pm Post subject: autofs+samba? |
|
|
I tried to start automount with this config file to make it work with Samba servers
Code: |
00:39 ~ # cat /etc/autofs/auto.master
# $Id: auto.master,v 1.3 2004/12/09 08:25:48 robbat2 Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/mnt/samba program:/etc/autofs/auto.smb
|
while auto.smb is
Code: |
#!/bin/bash
# $Id: auto.smb,v 1.3 2005/04/05 13:02:09 raven Exp $
# This file must be executable to work! chmod 755!
key="$1"
opts="-fstype=cifs,rw,umask=0,nosetuids,noperm,guest,iocharset=utf8"
smbclient -gNL $key 2>/dev/null| awk -v key="$key" -v opts="$opts" -F'|' -- '
BEGIN { ORS=""; first=1 }
/Disk/ { if (first) { print opts; first=0 }; sub(/ /, "\\ ", $2); print " \\\n\t /" $2, "://" key "/" $2 }
END { if (!first) print "\n"; else exit 1 }
'
|
when i try to enter some share, for example //194.85.81.190/public, i get such messages in /var/log/messages
Code: |
Oct 17 00:49:01 localhost automount[24981]: mount(generic): mkdir_path /mnt/samba/194.85.81.190/public failed: Operation not permitted
|
what's the matter with it? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23109
|
Posted: Wed Oct 17, 2007 3:21 am Post subject: |
|
|
If I recall correctly, I had problems with this when I used the legacy automounter support. Be sure you configure your kernel with AUTOFS4_FS, not AUTOFS_FS. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
demidrol n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Feb 2007 Posts: 5
|
Posted: Wed Oct 17, 2007 4:27 am Post subject: |
|
|
that's OK, i have automounter suppurt in kernel. Moreover, statical rules for samba work well (i mean 'file' configs). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|