PDA

View Full Version : NFS mounting by non-root??? HELP!!


baxterman
16th August 2004, 10:01 AM
I've been playing with the NFS mounting options as suggested in http://www.fedoraforum.org/forum/showthread.php?t=2229

What I want to do is allow a non-root normal user to create their own mount points on a Windoze share. I've tried it both the following ways and get the same result

1)manually mount as root :'smbmount //PC/music /home/user/desktop/music -o username=johnny,password=bigboy'
If I try to do this logged in as 'user', even though 'user' owns '/home/user/desktop/music' I get :
smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed:1


2)automatically create user mounts in /etc/fstab by adding :
//PC/music /home/user/desktop/music smbfs users,noauto,nosuid,nodev,noexec,credentials=/mnt/samba/auth.smb,fmask=664,dmask=775 0 0

created the file '/mnt/samba/auth.smb' and added the credentials etc.

Still get : 'smbmnt must be installed suid root for direct user mounts (500,500)
smbmnt failed:1' if I'm logged in as anything but root.

:confused:
any ideas?

chiku31
30th November 2004, 01:34 AM
Although this thread had been posted for a long time, and I think you probabaly already solved the problem. But I would like other people able to solve this problem in the future regarding nono-root user smbmount for read&write access to a windows share. The bottom link will provide a detail instruction regarding to this issue.
http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html


Here is my sample /etc/fstab:
//192.168.1.102/j /mnt/intelp4/j smbfs username=defaults,password=defaults,uid=500,gid=jo hnson 0 0
The line will allow you to gain read and write permission to a window share even for a non-root user.