'mount error 13 = Permission denied' when user mounts cifs (sudo works!)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: samba
I'm using samba to share files between my home computer (dual boot Windows/Ubuntu 8.10) and my laptop (Ubuntu 8.10). Most of the time, Windows is running at the home computer. Sharing goes fine with the following fstab entry:
//172.19.3.4/Media /home/<user>/media cifs noauto,
With this command line, a user can mount it (if Windows shares the directory!).
Yesterday I booted again to Ubuntu on my home computer and there were a lot of updates, I also think Samba got updated. I noticed that all my shares were unshared, so I had to share my folders again. I did so, using the 'Share' tab of the folder and I gave access to guests.
Now, on my laptop I can only mount the share as super user (sudo mount ~/media). If I mount the share as normal user, I get the following message:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
This used to work, but now it doesn't. So, I think this justifies a bug report. Hopefully, this makes Ubuntu better :-).
(Again: If I share a map on Windows (Desktop) and access this map with Ubuntu (Laptop), a user can mount it. If I share a map on Ubuntu (Desktop) and access this map with Ubuntu (Laptop), a user cannot mount the share.)
Some more info:
Both computers are running the following version of Samba:
>apt-cache policy samba
samba:
Installed: 2:3.2.3-1ubuntu3.3
Candidate: 2:3.2.3-1ubuntu3.3
Version table:
*** 2:3.2.3-1ubuntu3.3 0
500 http://
500 http://
100 /var/lib/
2:
500 http://
The laptop has proposed enabled.
In this bug report, I used anonymous (guest) access to the share. I changed the login policy and now I have to specify a username and password. In contrary to the above bug report, a user is able to mount the new configuration without problems. It seems the bug is related to guest access.