LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-06-2004, 12:25 PM   #1
grendel-IT
LQ Newbie
 
Registered: Mar 2004
Distribution: Debian,Gentoo,Ubuntu
Posts: 23

Rep: Reputation: 15
mount with uid and umask via NFS


Hi,
I want so share a partition via NFS so a PC with DVD-burner will burn it.
I've mounted the partition on the PC with:
#mount /dev/hdax /mnt/hdax
I've configured NFS to share only to the pc that directory.
On the PC I succesfully mount the directory, but some files and dirs are unreadable cause of permission denied! They have the 3 last permissions items empty (---). That should be the problem. I've tried mounting (on the NFS server the partition) with uid=code and even setting ownmask but I've got errors...
Thanks im advance,
Enrico
 
Old 08-06-2004, 12:57 PM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Say the nfs mount point is : /mnt/nfs on the client, /shares/nfs on the server, server IP is : 192.168.0.1 and client IP is : 192.168.0.2. You want to set uid to 500 and gid to 100

in the fstab of the client :
Code:
192.168.0.1:/shares/nfs  /mnt/nfs  nfs  rw,sync,noauto,user,rsize=8192,timeo=14,wsize=8192,intr 0   0
in the /etc/exports of the server :
/shares/nfs 192.168.0.2(sync,rw,anonuid=500,anongid=100)
 
  


Reply

Tags
nfs


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 04:34 AM
nfs umask setting mvo Linux - Newbie 1 09-16-2005 10:52 PM
SuSE 9.2, Samba, wrong GID/UID after mount dickohead Linux - Networking 2 04-21-2005 05:38 AM
Mounting NFS Shares ... UID Problem Riddick Linux - Software 1 01-06-2005 10:48 AM
UID Mapping for NFS without NIS jgombos Linux - Networking 1 07-27-2003 07:52 PM


All times are GMT -5. The time now is 07:26 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