LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 06-22-2005, 12:14 AM   #1
fahad26
LQ Newbie
 
Registered: Jan 2005
Location: Pakistan
Distribution: Red Hat
Posts: 17

Rep: Reputation: 0
NFS Mount as an ORDINARY USER


Hi ,
Actually i want to do an NFS Mount as an ordinary user from one of the clients. In the /etc/exports file at the NFS Server i have the folllowing line.

/home/u02024 *(rw,insecure,sync,insecure_locks,no_root_squash)

When i run the following command from the client as root user , the NFS Mount is successful.

mount -t nfs 192.168.0.7:/home/u02024 /home/localwork

but when i try to run this command as an ordinary user, it says

nfs bindresvport: Permission denied



PLEASE HELP ME OUT!!!!!!!!!!!!!!!!!!!!!!!!
 
Old 06-22-2005, 07:05 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
you must add
Code:
192.168.0.7:/home/u02024 /home/localwork nfs rw,user,noauto 0 0
to /etc/fstab and do mount /home/localwork
 
Old 06-23-2005, 01:11 AM   #3
fahad26
LQ Newbie
 
Registered: Jan 2005
Location: Pakistan
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
STILL not working

WELL I have had already done that but still its not working.
 
Old 06-23-2005, 04:38 AM   #4
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
What happens now? Is it the same error?
A normal user can't give options to the mount command, as you surely realize the enormous security implications. I you don't, here's a hint: think of a suid-root shell on a floppy/cdrom/nfs.
 
Old 07-24-2005, 02:15 AM   #5
RareCactus
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
>Hi ,
>Actually i want to do an NFS Mount as an ordinary user from one of the clients. In the /etc/exports file at >the NFS Server i have the folllowing line.
>
>/home/u02024 *(rw,insecure,sync,insecure_locks,no_root_squash)
>
>When i run the following command from the client as root user , the NFS Mount is successful.
>
>mount -t nfs 192.168.0.7:/home/u02024 /home/localwork
>
>but when i try to run this command as an ordinary user, it says
>nfs bindresvport: Permission denied

All ports below 1024 are "reserved": only root can bind to them.
Your NFS server appears not to be allowing people to connect on "unreserved" ports (i.e. ports above 1024.) So... you NFS server will only accept connections from root users then!

If your server is the standard linux NFS server, you can add this option to your /etc/exports:
"insecure"
Just as an example, my /etc/exports looks like this:
/northstar 192.168.1.0/255.255.255.0(rw,no_subtree_check,sync,insecure)

I know "insecure" sounds scary, but let's face it: NFS is insecure anyway. You should only be running it on a trusted LAN, behind a firewall or NAT. So allowing clients to connect on non-reserved ports isn't such a dire security breach.
Another solution might be putting the NFS mount into your /etc/fstab file-- you can find information about doing that on the web.

--
R/C
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 03:34 AM
NFS Mount as an ORDINARY USER fahad26 Linux - Newbie 1 06-22-2005 02:30 AM
Mounting NFS from an ordinary user fahad26 Linux - Networking 5 05-11-2005 08:11 PM
Can't startx as ordinary user WoodLark Slackware 8 03-26-2005 04:40 PM
no-root user can not mount a remote nfs directory? xiamw Linux - General 3 12-16-2004 09:29 AM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration