Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-05-2005, 08:59 AM   #1
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Mounting NFS Shares ... UID Problem

I have two users on a pc who mount their ~/Documents and ~/Mail from my fileserver.
For one user (UID=1000) this is fine, I created /Documents and /Mail while logged in as
that user and the mounted NFS to that place, rw'ed.

UID=1001 has slightly more problems. I create /Documents and /Mail and the NFS shares
are mounted. I then find the owner ship of this has chaged to UID=1000, and so can no longer
be written to from that user!

I log in as root and it says I don't have the permission to change the ownership of UID=1001
/Documents and /Mail!

Please help,


fstab for those who want it:
/dev/hda1 / reiserfs acl,user_xattr 1 1
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
se:/home/ed/Users/LO/Mail /home/lo/Mail nfs defaults,rw 0 0
se:/home/ed/Users/LO/Documents /home/lo/Documents nfs defaults,rw 0 0

Last edited by Riddick; 01-05-2005 at 09:03 AM.
Old 01-06-2005, 10:48 AM   #2
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Rep: Reputation: 15
I had the same problem and solved it like this (by nuking nfs' poor security...)

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/mnt/Shares (rw,anonuid=1000,anongid=1000)
/mnt/Scsi (rw,anonuid=1000,anongid=1000)
/var/www (rw,anonuid=1000,anongid=1000)

if I can remeber well, the "annouid=1000" was the key: your 1000 and 1001 users will read and write as they were both 1000.

hope it will work


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
mounting NFS shares help pls mlu Linux - Networking 1 11-23-2004 10:32 PM
Conditionally mounting nfs shares eagle862 Linux - Networking 1 11-03-2004 12:46 AM
Does anyone know why mounting NFS shares causes the directory permissions to change? gkneller Linux - Networking 4 01-29-2004 09:21 AM
exporting NFS shares in redhat 9 / mounting them in OS X 10.2.6 brainlego Linux - Networking 7 07-25-2003 07:46 AM
Support for mounting NFS shares glock19 Linux - General 1 05-09-2002 08:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:41 AM.

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