Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CIFS mounting confusion
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
Jareth007
n00b
n00b


Joined: 06 Jul 2005
Posts: 23

PostPosted: Sun Apr 05, 2009 3:28 am    Post subject: CIFS mounting confusion Reply with quote

I've setup an fstab entry to enable not root users to mount a samba share, but ran into problems.

Here is the fstab entry
//server/share /mnt/share cifs suid,user,rw,credentials=/home/me/.fstabcred,sec=ntlmv2,uid=me,gid=users,noauto 0 0

As root, not problems. As user 'me', I received the following error:
mount error 1 = Operation not permitted

After much Googling, the only option was to chmod +s /usr/bin/mount.cifs and do the same for umount.cifs
It then worked. Great but I don't understand why the user option in the fstab didn't work.
A gentoo bug report covered the workaround, but I'm confused.

Can anyone explain why I still had to use suid bit on the mount/umount commands? Isn't this a security risk? Is there a better way to handle this?

Thanks!
Back to top
View user's profile Send private message
olli.bo
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 208
Location: Germany

PostPosted: Sat Apr 11, 2009 10:05 am    Post subject: Reply with quote

Hi,
There may be wrong permissions on /mnt/share.
Back to top
View user's profile Send private message
Jareth007
n00b
n00b


Joined: 06 Jul 2005
Posts: 23

PostPosted: Sat Apr 18, 2009 3:42 am    Post subject: Reply with quote

Before I tried to use the mount point, I made sure the owner was my user account and that the group was set to users.
Still trying to understand why I had to set the binaries to suid. Sounds bad, but I'm nervous with making those binaries user executable.

I'm not able to post my FSTAB tonight. I'll try to post tomorrow.
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