LinuxQuestions.org
Help answer threads with 0 replies.
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-2009, 12:14 PM   #1
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Rep: Reputation: 16
Windows Client can't write to Linux NFS


Hey there
Been looking around now for a few days and can't seem to figure it out what is going wrong.
I want to write to my Linux NFS share from a windows client but i can't.
Following the howto found here
 
Old 09-07-2009, 12:23 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
That looks like a HOWTO for setting up NFS so it'll be accessible from another Linux/UNIX OS.

What Windows client are you using? The only one I'm aware of is this: http://www.microsoft.com/downloads/d...displaylang=en. See http://support.microsoft.com/kb/324055/en-us too.

What does your /etc/exports look like? Any firewalls in use on either machine? Is rpc running on the server? Can you connect to the NFS shares from another Linux client? Do you get any error messages when trying to connect? More info would be good.

Last edited by pwc101; 09-07-2009 at 12:25 PM. Reason: fixed Windows NFS client link
 
Old 09-07-2009, 12:33 PM   #3
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Original Poster
Rep: Reputation: 16
This is what i have in my /etc/exports
/var/www/html 192.168.1.2(rw) 127.0.0.1(rw)
The windows client that is use the default one found in vista
Don't have a problem mounting and reading just can't write anything
Tryed installing those tools for windows but seems that its only for XP

Last edited by Deluka; 09-07-2009 at 01:17 PM.
 
Old 09-07-2009, 01:42 PM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Looks like a permissions issue to me. That is, you're trying to write to /var/www/html (which is probably either owned by apache or root), but the Vista user you're connecting from has no equivalent permissions on the server, so it's crapping out. I'd try either setting no_root_squash in your exports, or fiddling around with the anonuid and anongid options. For example (untested):
Code:
/var/www/html 192.168.1.2(rw,no_root_squash) 127.0.0.1(rw)
Or:
Code:
/var/www/html 192.168.1.2(rw,anonuid=your_user_uid) 127.0.0.1(rw)
Change your_user_uid to the value of the user who has permissions to write to /var/www/html.
 
Old 09-09-2009, 12:35 PM   #5
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Original Poster
Rep: Reputation: 16
Solved

Thx pwc101 solved it.
Also needed to change the permission on the directory.
 
Old 09-09-2009, 12:38 PM   #6
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by Deluka View Post
Thx pwc101 solved it.
Also needed to change the permission on the directory.
Could you let us know exactly what solved it, in case someone comes across this post in the future. That way, there's a record of a definite fix
 
Old 09-09-2009, 12:55 PM   #7
Deluka
Member
 
Registered: Jul 2009
Location: Belguim
Distribution: Fedora 11
Posts: 42

Original Poster
Rep: Reputation: 16
Lightbulb The Way i Solved it

First tried adding "no_root_squash" to /etc/exports.
But still the same problem.
Then starting thinking about the permissions on the dir itself.
When i thought about it made no sense at all that exports said "rw" and the permission on the dir only read for other users then the owner.
Changed it using chmod 777 and got everything up and running as needed. Just to test it removed the ""no_root_squash" again from exports and the problem was back.

Hope this helps anybody else
 
Old 02-09-2015, 05:38 AM   #8
prowla
Member
 
Registered: Feb 2011
Location: UK
Distribution: RHEL 5 & 6, Ubuntu 10
Posts: 93

Rep: Reputation: 3
I know this is an old thread, but I came across it whilst trying to mount an NFS share read-only, so it's still getting hits.

Just a note of caution; setting UNIX/Linux file permissions to 777 is almost NEVER the correct way to resolve an issue.
 
  


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
Windows 2003R2 NFS Server /Linux NFS client khalil_noura Linux - Networking 0 01-14-2009 12:06 PM
NFS client hangs when write ziobudda Linux - Networking 5 04-14-2006 11:40 PM
NFS client write permissions tireseas Linux - Networking 5 05-03-2005 08:52 AM
NFS: Linux Server / Windows Client kegwell Linux - Software 2 07-04-2004 02:15 PM
windows client, linux nfs server how to connect feetyouwell Linux - Software 1 06-09-2004 04:35 AM


All times are GMT -5. The time now is 11:15 PM.

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