LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 0
NFS Mount as an ORDINARY USER


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, 02:30 AM   #2
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Basically, as a user you can't mount things, because it is a security risk.

There are a few exceptions
- smbmount can be run as a user (though not for nfs)
- you can mount stuff that is in fstab (with options noauto, user), but then you need to be root to add stuff to fstab
- You can temporarily become root using su or sudo or somesuch
- You can make mount suid root (which is not good, security wise)

Make your pick

Groetjes,

Kees-Jan
 
  


Reply



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 13 04-11-2016 11:30 PM
NFS Mount as an ORDINARY USER fahad26 Linux - Networking 4 07-24-2005 02:15 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration