When the mount point was created on poseidon it had permissions:
drwxr-xr-x 3 oracle dba 512 Sep 30 13:55 devo_data1
Once the drive is mounted it has permissions: drwxr-xr-x 3 root root 512 Sep 30 13:55 devo_data1
If I then "chown oracle:dba /devo_data1" (on poseidon) AFTER the disk has been mounted, when it is NFS mounted on hephaistos it retains the oracle:dba ownership.
So now the question becomes, how do I do the initial mount on poseidon so that it does NOT change ownership to root:root? This is what exists in the /etc/vfstab on poseidon for it:
/dev/dsk/c0t9d0s7 /dev/rdsk/c0t9d0s7 /devo_data1 ufs 2 yes -
There doesn't seem to be anything in the mount and mount_ufs man pages that indicate being able to force the ownership of the mount point. So is there some way I can use chmod to set the ownership bits etc on the mount point before it is mounted, such that when the drive is mounted there the original ownership is retained?
(The oracle user and dba group exist on both machines with the same uid/gid)
Thanks
Chris
Chris Cheshire wrote:
Hi,
I am trying to nfs mount a drive b/w two solaris 2.6 machines, but it keeps mounting as owned by root, group root. How can I change this?
Here is what I have configured so far:
poseidon (has the drive physically in it) /etc/dfstab : share -F nfs -o rw=hephaistos -d "data1" /devo_data1
hephaistos (where i want the drive mounted) /etc/vfstab: poseidon:/devo_data1 - /u03 nfs - yes rw,hard
on hephaistos the /u03 directory was originally created as: drwxr-xr-x 2 oracle dba 512 Sep 30 13:55 u03
after the directory is mounted: drwxr-xr-x 3 root root 512 Sep 30 14:07 u03
I need the directory to be writeable by the oracle user, how do I achieve this?
Thanks
Chris
_______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
_______________________________________________ Solaris-Users mailing list [EMAIL PROTECTED] http://www.filibeto.org/mailman/listinfo/solaris-users
