View previous topic :: View next topic |
Author |
Message |
Jareth007 n00b
Joined: 06 Jul 2005 Posts: 23
|
Posted: Sun Apr 05, 2009 3:28 am Post subject: CIFS mounting confusion |
|
|
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 |
|
|
olli.bo Apprentice
Joined: 16 Jul 2003 Posts: 208 Location: Germany
|
Posted: Sat Apr 11, 2009 10:05 am Post subject: |
|
|
Hi,
There may be wrong permissions on /mnt/share. |
|
Back to top |
|
|
Jareth007 n00b
Joined: 06 Jul 2005 Posts: 23
|
Posted: Sat Apr 18, 2009 3:42 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|