Solved

bindresvport error  on user nfs mount

Posted on 2001-08-08
4
271 Views
Last Modified: 2010-03-18
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 ?
0
Comment
Question by:DennisWood
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 6365802
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.
0
 

Author Comment

by:DennisWood
ID: 6365880
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
0
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 6366139
Just to keep things simple to aid in diagnosing the problem... What happens if you su to root, then mount the volume, and then revert back to ordinary user status? Can you access files in /home/user/mnt? If you remove the "user" option from the fstab line and mount the volume can you access the files?
0
 

Author Comment

by:DennisWood
ID: 6370174
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
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question