Operating System - HP-UX
1825704 Members
3202 Online
109686 Solutions
New Discussion

Re: export NFS to only 1 user on a machine

 
David_246
Trusted Contributor

export NFS to only 1 user on a machine

Hi,

Is there a possebility to export an FS to two servers to one userid only?

We only want the oracle user to be able to mount the NFS FS in on a cluster, so NFS server1 would export an FS that can be mounted on one of the both clusternodes?

The /etc/exports on NFS server1 would look like :

/oradblogs -access=clustern1:clustern2, anon=


Does anyone have an idea if this is the correct way?

Regs David
@yourservice
4 REPLIES 4
Mark Grant
Honored Contributor

Re: export NFS to only 1 user on a machine

David, can't you just use normal unix permissions to stop users using the nfs mount?
Never preceed any demonstration with anything more predictive than "watch this"
Karthik S S
Honored Contributor

Re: export NFS to only 1 user on a machine

Hi,

First of all a normal user will not be able to use the mount command (autofs is an exception). Instead give the access to both the cluster nodes and change the directory ownership of the exporeted directory to oracle:dba and set the permissions as 770 so that no one else will be able to access the data.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Robert-Jan Goossens
Honored Contributor

Re: export NFS to only 1 user on a machine

Hi David,

If you setup sudo for the oracle user, you could ecport the filesystem with a specific user id.

Kind regards,
Robert-Jan
doug mielke
Respected Contributor

Re: export NFS to only 1 user on a machine

And a small reminder that you probably already know, If you go the permissions route, the users ID (oracle) need to match between the systems.