1826215 Members
2908 Online
109691 Solutions
New Discussion

NFS Mount

 
SOLVED
Go to solution
Justin_132
Advisor

NFS Mount

Hi Admins,

I have mounted a filesystem thro' NFS in a client. Only the root is able to create files/direcs..inside this mountpoint in the client-side. When a normal user tried creating a file, Im getting permission denied. How can make all users in my NFS client to have permission for creating file/directories..

I have started nfs.core and nfs.server in the SERVER side and nfs.client in the CLIENT side. My entries inside the export file is
just /delta1.

Just-In
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: NFS Mount

What are the permissions of the file system?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Victor BERRIDGE
Honored Contributor

Re: NFS Mount

Hi,
To me it looks more like the way you did the export, how did you configure in case of unknown ID? (root= UID 0 on ALL unix systems...)
I would believe in UID mismatch betweeen your 2 hosts...

All the best
Victor
Justin_132
Advisor

Re: NFS Mount

Hi Geoff,

My entries inside export file is

/delta1 -anon=2,access=crms

-Just-in
Dave Olker
Neighborhood Moderator
Solution

Re: NFS Mount

Hi Justin,

When a root user creates a file in the NFS-mounted directory, what permissions do the created file have? Uid=2?

Back to Geoff's original question - what are the permissions of the exported directory on the NFS server? If you modify the directory permissions of the exported directory to 777 can non-root users then create files?

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Justin_132
Advisor

Re: NFS Mount

Hi All,

Dave.. thxs to strike me chmod 777 folder in SERVER side. As I was just thinking all about doing diff options inside /etc/export file. Thxs guys.

Cheers...Just-In
Geoff Wild
Honored Contributor

Re: NFS Mount

Whoa - not 777!!!!!

Should be 775 - and make the group the same as the one the users are in :)

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dave Olker
Neighborhood Moderator

Re: NFS Mount

Agreed.

The 777 was simply a test to see if the directory permissions were causing the problem. I wouldn't suggest leaving the directory with these permissions, but that's the quickest way to see if what you're battling is a problem caused by too restrictive directory permissions.

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo