up vote 1 down vote favorite
1
share [g+] share [fb]

I am unable to get mount.cifs to respect the user flag passed to mount. The entry in /etc/fstab is

//10.0.1.205/rm /home/robert/remote/rm cifs user,uid=robert,gid=users,file_mode=0644,dir_mode=0755,credentials=/etc/samba/navision,rw,noauto 0 0

but when executing

robert@rm:~/remote> mount rm

I receive

mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
link|improve this question

71% accept rate
feedback

3 Answers

up vote 5 down vote accepted

It looks like mount.cifs has to be setuid to allow normal users to mount shares.

http://www.samba.org/samba/docs/man/manpages-3/mount.cifs.8.html

"It is possible to set the mode for mount.cifs to setuid root to allow non-root users to mount shares to directories for which they have write permission."

link|improve this answer
feedback

Do NOT name a drive volume "rm" under Linux. You are asking for disaster.

link|improve this answer
1  
Tell that to my system administrator team. Unix users are created by initials. Guess what my user is :-) – Robert Munteanu Nov 6 '10 at 8:42
feedback

This is the format I think you want to use-it looks like maybe you're using the wrong user deceleration in the command pasted above

//192.168.44.100/share_name /path_to/mount_point cifs username=server_user,password=server_password,_netdev,uid=client_username,gid=users 0 0
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.