You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

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

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.

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

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.

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.

It seems the permissions and ownerships issues on windows mounting NFS is rampant. I haven't found any way to get it to work without using 777 on the linux fs permissions set on the dirs and files.

Even when mounting with correct AD user that linux has the AD user mapped via sssd (and user is part of the group ID), it doesn't work with perms 775. Any ideas of how to fix this would be great because I cannot find any forum so far that has a solution. Everyone resorts to permissions 777 even though it is always mentioned it is not a good solution.