Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba mounted as user.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 136

PostPosted: Thu Sep 03, 2009 8:42 pm    Post subject: Samba mounted as user. Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Sep 03, 2009 8:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 136

PostPosted: Thu Sep 03, 2009 8:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Sep 03, 2009 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 136

PostPosted: Thu Sep 03, 2009 9:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Sep 03, 2009 9:10 pm    Post subject: Reply with quote

What are the permissions of /home/zapo/mediacenter and mount.cifs?
Code:
ls -lhd $(which mount.cifs) /home/zapo/mediacenter

_________________
KDE
Back to top
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 136

PostPosted: Thu Sep 03, 2009 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Sep 03, 2009 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
erzapito
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2007
Posts: 136

PostPosted: Thu Sep 03, 2009 9:21 pm    Post subject: Reply with quote

With the suid flag on mount.cifs it works perfect.

Thank you very much, I'm going to report the bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum