Solved

bindresvport error  on user nfs mount

Posted on 2001-08-08
4
262 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now