On Fri, Feb 04, 2011 at 10:40:45AM +0100, Josef Wolf wrote:
Hello all,
With opensuse-11.3, I can't mount CIFS filesystems anymore:
kiste:/ # mount -t cifs -o domain=wgrp,user=myself '//server.com/MYSELF$' /net/h Password: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
This worked fine with opensuse-11.2. The problem must be with mount() system call, since I can access the share with smbclient without any problems:
kiste:/ # smbclient -Wwgrp -Umyself '//server.com/MYSELF$' Enter myself's password: Domain=[WGRP] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2] smb: \> exit
I've checked the permissions of the mount point, and everything looks fine.
Any hints why I am getting "permission denied" although I try to mount as root?
OK, I come closer. Turns out that the mount point needs to be either owned by root or have the public-searchable mode bit set. If owner is not root, mode must be at least 711. Mode 700 will not work. This is strange, since root should be able to mount even if the mount point is owned by some other user. When mounting local filesystems, I don't see such a strange behavior as with this CIFS mount. Anybody agrees with me that this is a bug? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org