Re: NFS shared directory permission (rhel6)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/01/2011 05:23 PM, Jatin K wrote:
> Dear all
>
> what should be the permission of NFS shared directory on RHEL6 ???
>
> I've shared a directory on rhel 6  ...following are the configuration done
>
> created a directory /office
>
> --/etc/exports----
> /office *.officebox.local(rw,sync)
>
>
>
> ---ls -ld /office
>
> drwxr-xr-x. 3 root root 4096 Aug  1 13:44 /office
>
>
> problem :-  all the clients in officebox.local can mount the nfs shared
> directory on localsystem  but it always mounted as read-only  ...even
> though /etc/exports configured with read and write
>
> I'm able to solve this problem by changing permission and set it to 777
> ..... but this is not desirable
>
> is it compulsory to set permission to 777  ... what is the batter
> solution ?????

NFSv4 has become both more awesome and more complex.
Before getting into specific issues that can cause this...

What is the output of "ls -Zl" from within the share (/office, right?) 
from a user account? (not root) It is not enough to just see that 
/office is owned by root (particularly if you are checking from the root 
account).

Also, is /office being used as an alternative /home location or is it 
being used as just a common share for data?

In addition to the ownership, the SELinux context can be important 
(please don't tell me you went the "just turn it off" route!). What is 
the output of "ls -Zl" on the server side of the share, both the main 
share directory and inside the directory.

What is the output of "getsebool -a" on the server side?

And... are you running LDAP or NIS/NIS+, Kerberos or anything else 
interesting for authentication/authorization on your network?
These are a huge help but also a huge subject to cram into a week of 
marathon self-study if you're not familiar with them already... that is 
if you really want to understand them and not just follow a howto 
without comprehending half of what you're doing.

-Iwao
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux