LinuxQuestions.org
Review your favorite Linux distribution.
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 05-11-2005, 03:54 AM   #1
fahad26
LQ Newbie
 
Registered: Jan 2005
Location: Pakistan
Distribution: Red Hat
Posts: 17

Rep: Reputation: 0
Mounting NFS from an ordinary user


HOw can i mount nfs as an ordinary user?I have the exports file as follows

/home/exporte *(rw)


the error i get is that Permission denied and /home/exporte failed.
 
Old 05-11-2005, 03:20 PM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Are you specifying a local mount point that you own?
 
Old 05-11-2005, 06:19 PM   #3
fahad26
LQ Newbie
 
Registered: Jan 2005
Location: Pakistan
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michaelsanford
Are you specifying a local mount point that you own?

No i the files i wan to mount are not local.
 
Old 05-11-2005, 06:25 PM   #4
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Sorry if you know this, but I'll go over it anyway.

You need to specify a remote share and a local mount point, like this
Code:
mount gateway.local:/home/exporte /mnt/share
Where /tmp/share is the remote folder and /mnt/share is the local folder where the files will appear.

If you don't own (or have rw access to) /mnt/share you won't be able to mount it, as far as I know. So what are the permissions on the local folder (mount point) you're monting on?

I'm not totally sure but I think that /home/exporte also has to have at least 'all read' permissions.
 
Old 05-11-2005, 06:42 PM   #5
fahad26
LQ Newbie
 
Registered: Jan 2005
Location: Pakistan
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by michaelsanford
Sorry if you know this, but I'll go over it anyway.

You need to specify a remote share and a local mount point, like this
Code:
mount gateway.local:/home/exporte /mnt/share
Where /tmp/share is the remote folder and /mnt/share is the local folder where the files will appear.

If you don't own (or have rw access to) /mnt/share you won't be able to mount it, as far as I know. So what are the permissions on the local folder (mount point) you're monting on?

I'm not totally sure but I think that /home/exporte also has to have at least 'all read' permissions.

I HAVE THE RW ACESS TO LOCAL /mnt/share WHERE I WANT TO MOUNT. THE ERROR I AM GETTING IS THAT

Permission denied.
/etc/exports FAILED


When i mount as su i am able to MOUNT but with an ordinary user I HAVE GOT PROBLEMS.

HELP ME OUT.
 
Old 05-11-2005, 09:11 PM   #6
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Quote:
Originally posted by fahad26
HELP ME OUT.
What do you think I'm trying to do dude? Shouting isn't going to get anyone to help you, that's for sure.

To mount filesystems as a regular user you have to have the foreign filesystem in /etc/fstab and have the "user" flag set. There is no other way to do it IIRC.
 
  


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
NFS Mount as an ORDINARY USER fahad26 Linux - Networking 4 07-24-2005 03:15 AM
NFS Mount as an ORDINARY USER fahad26 Linux - Newbie 1 06-22-2005 03:30 AM
nfs mounting as different user remote2 Linux - Networking 0 01-12-2005 06:18 PM
Mounting ftp sites as ordinary user saurya_s Linux - Software 2 01-04-2004 04:19 AM
mounting drives and devices as an ordinary user jamesbond Linux - Newbie 3 07-07-2002 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:46 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration