LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


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 - 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


All times are GMT -5. The time now is 01:26 PM.

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