LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-07-2007, 07:13 AM   #1
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Rep: Reputation: 15
NFS Sharing and write issues


Hey there
I tried to find something similar to my issue on the forum but seems like
no "ad-hoc" solution has been replied to other similar threads.
Anyway...
I have a desktop running Slackware 12.0 with default kernel. I have a partition used for downloads and storage mounted with these options (taken from /etc/fstab):
Code:
/dev/hda3        /extra           vfat        auto,user,rw     1   0
Now, since I have a laptop with just 15GB's of space running PCLinuxOS 2007, I've setup an NFS share on my desktop so that I could save files downloaded and created on the laptop.
To achieve this I edited /etc/exports and made it look like this:
(from /etc/exports on my desktop)
Code:
/extra/ annihilator(async,no_subtree_check,rw)
Where "annihilator" is my laptop. When I mount that folder on the desktop and then I mount it on the laptop (using the nfs filesystem) i can see my files but cannot write to the share. I have the same username on both PC's but they have different UID's (1000 on Slackware and 501 on PCLOS2007). Permissions on the /extra folder are set like this:
Code:
root@skatola:/# ls -la /extra/
total 32
drwxr-xr-x  8 thug users 4096 1970-01-01 00:00 .
drwxr-xr-x 20 root root  4096 2007-08-02 21:47 ..
drwxr-xr-x  7 thug users 4096 2007-07-22 19:06 Backup - 22-7-2007
drwxr-xr-x  5 thug users 4096 2007-06-02 18:58 Games
drwxr-xr-x 15 thug users 4096 2007-08-26 01:03 Movies
drwxr-xr-x 11 thug users 4096 2007-06-17 17:59 Music
drwxr-xr-x  3 thug users 4096 2007-05-17 20:45 School
drwxr-xr-x  3 thug users 4096 2007-05-29 13:57 Software
Any hint or idea on how to make that share writable?
Thanks in advance

-thugic
 
Old 09-08-2007, 08:17 AM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
UID's and GID's need to be the same on both machines. The machines don't care that you have the same name. I know tons of different "john" and "mike", but they aren't the same person.

Else, you can chmod -R 777 /extra, but that's a security issue (if you care about that). Also, root (by default?) cannot write to NFS mount points, only the root hosting NFS can.

Last edited by Micro420; 09-08-2007 at 08:18 AM.
 
Old 09-10-2007, 04:34 AM   #3
thugic
Member
 
Registered: Dec 2004
Distribution: Slackware 10.2
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks for your reply!
I changed my UID so that it match the owner of the folder on the NFS server and everything is working flawlessly.
Cheers

-thugic
 
  


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
Can't write to NFS tom@condorcape.com Linux - Security 2 10-11-2006 02:01 AM
NFS -- no read write ihopeto Linux - Networking 0 01-18-2006 10:31 PM
NFS doesn't want to write with ACIDRIP pablovschby Linux - Software 1 02-22-2005 12:57 PM
NFS: how can I get write-access?? pablovschby Linux - Networking 3 12-24-2003 08:39 AM
NFS no sharing hotrodowner Linux - Networking 3 06-06-2002 09:14 PM

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

All times are GMT -5. The time now is 12:27 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
Open Source Consulting | Domain Registration