DennisWood
asked on
bindresvport error on user nfs mount
I have a "laptop" with a home directory /home/user
wich i wanna export to "i586pc". The user "user" on the "i586pc" should be able to mount the directory. I've made the following configurations :
i586pc:
/etc/fstab
laptop:/home/user /home/user/mnt user,noauto,rw
laptop:
/etc/exports
/home/user i586pc (rw,insecure)
When i'm root on i586pc its no problem to mount the dir. When i'm user at i586pc i got the errormessage bindresvport : "access denied".
Before i put the "insecure" option into /etc/exports, i got the errormessage "illegal port 1026" on the laptop.
I have SuSE 6.3/4 on the laptop and SuSE 7.0 on the i586pc.
Whats wrong, or what i could i do against ?
wich i wanna export to "i586pc". The user "user" on the "i586pc" should be able to mount the directory. I've made the following configurations :
i586pc:
/etc/fstab
laptop:/home/user /home/user/mnt user,noauto,rw
laptop:
/etc/exports
/home/user i586pc (rw,insecure)
When i'm root on i586pc its no problem to mount the dir. When i'm user at i586pc i got the errormessage bindresvport : "access denied".
Before i put the "insecure" option into /etc/exports, i got the errormessage "illegal port 1026" on the laptop.
I have SuSE 6.3/4 on the laptop and SuSE 7.0 on the i586pc.
Whats wrong, or what i could i do against ?
Since you can mount the exported file system as root, everything is working correctly as far as NFS is concerned. The 'access denied" error is mount telling you that ordinary users aren't allowed to mount NFS volumes. If security isn't of any concern whatsoever, you could make "mount' suid to root. A better solution would be to set up sudo to allow ordinary users to mount just that file system.
ASKER
i tried out something simialar. i wrote a c-programm wich called "mount /home/user". after comiling i set the suid flag as owner root. the result was the mount call worked. but when i wanted to access to the dir i got the error invalid filehandle
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
yes it worked with su, after that i made it sudo and it works great.
Mostly its the best to keep simple, but not easy
Mostly its the best to keep simple, but not easy