Tags: patch

Hello Jan, I tried connecting to my Ubuntu Samba server with autofs
again today and the kernel oops has disappeared and your "sec=none"
suggestion works.

So "mount.smb -o guest" works:

ket% sudo mount.smb //mog.local/share /mnt -o guest
Anonymous login successful
ket%

- but "mount.cifs -o guest" does not work:

ket% sudo mount.cifs //mog.local/share /mnt -o guest
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
ket%

- but "mount.cifs -o sec=none" does work:

ket% sudo mount.cifs //mog.local/share /mnt -o sec=none
ket% ls /mnt
Movies MythVideo
ket%

So, *should* "mount.cifs -o guest" work like "mount.smb -o guest", or
should /etc/auto.smb use "sec=none"?

I ask the same question in this Ubuntu Samba bug:
https://launchpad.net/ubuntu/+source/samba/+bug/98658

Attached is the patch to /etc/auto.misc which enables me to connect with
"sec=none"

Thanks for your help Jan, Jack
--- /etc/auto.smb	2007/03/29 15:27:45	1.1
+++ /etc/auto.smb	2008/01/18 16:08:28
@@ -24,6 +24,7 @@
 	mountopts="$mountopts,credentials=$credfile"
 	smbopts="-A $credfile"
 else
+	mountopts="$mountopts,sec=none"
 	smbopts="-N"
 fi
  

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to