[Bug 852461] New: CIFS does not mount with autofs
https://bugzilla.novell.com/show_bug.cgi?id=852461 https://bugzilla.novell.com/show_bug.cgi?id=852461#c0 Summary: CIFS does not mount with autofs Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: jrcolvin@gmail.com QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 Using an HP DV-7 laptop I usually would like to have autofs to mount CIFS file share on a NAS QNAP TS-212. I am able manually mount the NAS with the following; mount -t cifs //snoeg-nas/documents /mnt/Documents/ -o username=username,password=topsecrete,uid=1000,gid=100 but unable to mount it with autofs with the following: etc/auto.master file: +auto.master /mnt/snoeg-nas /etc/auto.cifs --timeout=60 etc/auto.cifs mnt/snoeg-nas -fstype=cifs,nounix,noexec,username=me,password=secrete,uid=1000,gid=100 ://192.168.1.250/Documents The following packages are installed from the opensuse 31.1 x64 repro: cifs-util samba samba-32bit autofs I am using KDE's network manager. Reproducible: Always Steps to Reproduce: 1.As described above. 2. 3. Expected Results: CIFS share should mount when accessed, similar to autofs with NFS. To mount again on resuming and unmount on accessing sleeping or hibernate mode. Using Opensuse 13.1 and Packman repositories. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=852461 https://bugzilla.novell.com/show_bug.cgi?id=852461#c1 James McDonough <jmcdonough@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samba-maintainers@SuSE.de AssignedTo|samba-maintainers@SuSE.de |jmcdonough@suse.com --- Comment #1 from James McDonough <jmcdonough@suse.com> 2014-01-07 13:30:30 UTC --- I'll take look. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=852461 https://bugzilla.novell.com/show_bug.cgi?id=852461#c2 --- Comment #2 from Richard Colvin <jrcolvin@gmail.com> 2014-05-06 19:18:39 UTC --- To provide an update; I did manage to mount the NAS using autofs with CIFS. The only outstanding issue is already listed as a BUG with KDE and assume the Opensuse devs already know of it. https://bugs.kde.org/show_bug.cgi?id=184062 When the connection to the mounted CIFS share is lost KDE freezes. These are the mount options used: auto.master +auto.master /mnt /etc/auto.cifs --timeout=10 auto.cifs #!/bin/bash # $Id$ # This file must be executable to work! chmod 755! key="$1" # Note: create a cred file for each windows/Samba-Server in your network # which requires password authentification. The file should contain # exactly two lines: # username=user # password=***** # Please don't use blank spaces to separate the equal sign from the # user account name or password. credfile="/etc/auto.smb.$key" # Note: Use cifs instead of smbfs: mountopts="-fstype=cifs,file_mode=0644,dir_mode=0755,uid=1000,gid=100" smbclientopts="" for P in /bin /sbin /usr/bin /usr/sbin do if [ -x $P/smbclient ] then SMBCLIENT=$P/smbclient break fi done [ -x $SMBCLIENT ] || exit 1 if [ -e "$credfile" ] then mountopts=$mountopts",credentials=$credfile" smbclientopts="-A "$credfile else smbclientopts="-N" fi $SMBCLIENT $smbclientopts -gL $key 2>/dev/null \ | awk -v key="$key" -v opts="$mountopts" -F'|' -- ' BEGIN { ORS=""; first=1 } /Disk/ { if (first) { print opts; first=0 }; gsub(/ /, "\\ ", $2); sub(/\$/, "\\$", $2); print " \\\n\t /" $2, "://" key "/" $2 } END { if (!first) print "\n"; else exit 1 } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=852461 https://bugzilla.novell.com/show_bug.cgi?id=852461#c3 James McDonough <jmcdonough@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #3 from James McDonough <jmcdonough@suse.com> 2014-07-14 15:42:36 UTC --- closing as it is working as mentioned in comment #2. Please open a bug against kde if that problem still exists for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com