Can't automount CIFS as normal user
Using a tutorial found here: http://lists.olug.org/pipermail/olug...er/015520.html
I have set up my mountpoint. My fstab entry currently is: Code:
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green 0 0 However, what I can't do is mount as the user. Based on the tutorial I tried: Code:
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green,uid=500,gid=500 0 0 Code:
//192.168.1.101/e$ /mnt/greendata cifs rw,noauto,user,credentials=/etc/samba/cred_green,uid=[username] 0 0 Code:
mount error 1 = Operation not permitted |
I have a similar problem, that a normal user cannot mount the cifs share (it was possible with smbfs though before that). My workaround is to write the fstab entry and add permissions for the user or all users to mount with "sudo". That way it works flawlessly. I do not use the credentials part, don't know if it makes a difference.
My fstab entry Code:
//192.168.124.126/C /mnt/nike/c cifs noauto,users,rw,guest,uid=1000,gid=100,iocharset=iso8859-15,codepage=cp850 0 0 Code:
%users ALL=NOPASSWD:/sbin/mount /mnt/nike/c |
In order of my idea of likelihood:
|
And to add some more thoughts: I noticed that you write "e$" for the share name. When I watched the shares on a Windows machine some time ago with krusader, it showed two entries for each one share. If I remember it right it didn't work for me to put the $ at the end. Maybe try with just "e" instead of "e$"?
|
Is mount.cifs chmod +s? I.e., is the setuid bit set? If not, no user could ever mount with it.
|
All times are GMT -5. The time now is 08:44 AM. |