?
Solved

bindresvport error  on user nfs mount

Posted on 2001-08-08
4
Medium Priority
?
276 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 900 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

764 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