View previous topic :: View next topic |
Author |
Message |
erzapito Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2007 Posts: 136
|
Posted: Thu Sep 03, 2009 8:42 pm Post subject: Samba mounted as user. |
|
|
Hello,
I've got a samba mountpoint for my user to access another computer. With samba 3.3.7 I cannot mount the share anymore with my user, but with root I can. Alsa, with samba 3.2.14 I've got no problems.
With 3.3.7 I get an "operation not permited" error.
Any ideas?
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Earthwings Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/49753421747790001d409d.png)
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Sep 03, 2009 8:44 pm Post subject: |
|
|
Where does the error occur? What do the samba log files say (increase debugging level before maybe). Anything noteworthy in the output of testparm? _________________ KDE |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erzapito Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2007 Posts: 136
|
Posted: Thu Sep 03, 2009 8:49 pm Post subject: |
|
|
The error occurs when I try to mount the share with the normal user, I've got it at fstab with the users option. I don't have any logs, I think, nothing about samba in "dmesg", "messages" and the samba log dir is empty. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Earthwings Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/49753421747790001d409d.png)
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Sep 03, 2009 8:58 pm Post subject: |
|
|
Can you post the share definition from testparm and the fstab entry as well as the permissions of the desired mount point? Are you able to mount it as user using e.g. dolphin (smb://hostname/share) or another file manager? Does the share appear in smbclient -L hostname? _________________ KDE |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erzapito Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2007 Posts: 136
|
Posted: Thu Sep 03, 2009 9:04 pm Post subject: |
|
|
The fstab entry is:
//mediacenter/media /home/zapo/mediacenter cifs users,exec,noauto,user=XX,pass=XXX,ip=192.168.1.2 0 0
The curious thing is that I can mount the share as root, so there should be no problems with the server. And with the previuos version of samba I can mount it as normal user. I think that the 3.3.7 version maybe has something wrong with user permissions. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Earthwings Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/49753421747790001d409d.png)
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Sep 03, 2009 9:10 pm Post subject: |
|
|
What are the permissions of /home/zapo/mediacenter and mount.cifs? Code: | ls -lhd $(which mount.cifs) /home/zapo/mediacenter |
_________________ KDE |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erzapito Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2007 Posts: 136
|
Posted: Thu Sep 03, 2009 9:12 pm Post subject: |
|
|
drwxrwxrwx 1 zapo zapo 0 Sep 3 03:01 /home/zapo/mediacenter
-rwxr-xr-x 1 root root 26K Sep 3 23:08 /sbin/mount.cifs |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Earthwings Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/49753421747790001d409d.png)
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Sep 03, 2009 9:17 pm Post subject: |
|
|
I have mount.cifs with setuid permissions here (ubuntu). Can you (temporarily) change it to that and see whether it makes a difference? Also try smbfs instead of cifs, see topic 790528
Edit: Yes, the setuid bit seems to be the problem, see https://bugs.gentoo.org/show_bug.cgi?id=186383 _________________ KDE |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erzapito Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Feb 2007 Posts: 136
|
Posted: Thu Sep 03, 2009 9:21 pm Post subject: |
|
|
With the suid flag on mount.cifs it works perfect.
Thank you very much, I'm going to report the bug. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|