Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
autofs+samba?
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
demidrol
n00b
n00b


Joined: 25 Feb 2007
Posts: 5

PostPosted: Tue Oct 16, 2007 8:51 pm    Post subject: autofs+samba? Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23109

PostPosted: Wed Oct 17, 2007 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
demidrol
n00b
n00b


Joined: 25 Feb 2007
Posts: 5

PostPosted: Wed Oct 17, 2007 4:27 am    Post subject: Reply with quote

that's OK, i have automounter suppurt in kernel. Moreover, statical rules for samba work well (i mean 'file' configs).
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