Re: [opensuse] Permission denied when mounting CIFS filesystem



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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)
  • 2.6 kernel NFS root mount problem
    ... I'm tying to run 2.6.18 kernel on ARM AT91RM9200DK board with NFS mount ... usb usb1: Product: AT91 OHCI ... Unable to mount root fs via NFS, ...
    (Linux-Kernel)
  • NFS root mount problem
    ... I'm tying to run 2.6.18 kernel on ARM AT91RM9200DK board with NFS mount ... usb usb1: Product: AT91 OHCI ... Unable to mount root fs via NFS, ...
    (Linux-Kernel)
  • Re: nfs help?
    ... If you use root on client to mount an export, ... NFS, the original ownership is maintained, but numerically: ...
    (Fedora)