Operating System - HP-UX
1752577 Members
5403 Online
108788 Solutions
New Discussion

ACL not working when NFS Server and Client is same machine

 
Dhananjaya Amarakoon
Regular Advisor

ACL not working when NFS Server and Client is same machine

We have two Rx7620 servers that are running HP-UX 11.23. These servers are wbscsp01 and wbscsp02.
Space is presented to each server from XP128. In wbscsp02 there are two mount points call bscs1 and bscs1/WORK1

/dev/vgbscs01/lvol1 50057216 27934211 20758630 57% /bscs1
/dev/vgbscs01/lvol2 134766592 129157006 5609586 96% /bscs1/WORK1
Same server (wbscsp02) above two mount points are shared by NFS and mounted to /bscs and /bscs/WORK

192.168.1.3:/bscs1 50057216 27933320 20759465 57% /bscs
192.168.1.3:/bscs1/WORK1
134766592 129157036 5609556 96% /bscs/WORK

Actually in the wbscsp02 server also, application users works in this /bscs and /bscs/WORK locations not the bscs1 and /bscs1/WORK1

In the wbscsp01 server also access this NFS shared /bscs1 and /bscs1/WORK1 (in wbscsp02) through /bscs and /bscs/WORK mount points.

192.168.1.3:/bscs1 50057216 27933376 20759416 57% /bscs
192.168.1.3:/bscs1/WORK1
134766592 129166408 5600184 96% /bscs/WORK


Recently I got the requirement to create some ACL to files under NFS environment.
For the example I have done it following way
I create a file under /bscs1 mount point in wbscsp02 server

-rw-r--r-- 1 bscsprod bscsprod 34 Jan 21 10:57 acltest3

Has given write and read access to above file for dhaj user.

$ getacl acltest3
# file: acltest3
# owner: bscsprod
# group: bscsprod
user::rw-
user:dhaj:rw-
group::r--
class:rw-
other:r—

-rw-rw-r--+ 1 bscsprod bscsprod 0 Jan 21 15:37 acltest3

When I access this file from the wbscsp01 server (NFS client) as expected ACL working fine. (Login from the dhaj user and both servers uid of the dhaj is 126)



Wbscsp01
$ hostname
$ wbscsp01
$ whoami
dhaj
$ pwd
$ /bscs
$ ll acltest3
-rw-rw-r-- 1 bscsprod bscsprod 0 Jan 21 15:37 acltest3
$ touch acltest3
$ ll acltest3
-rw-rw-r-- 1 bscsprod bscsprod 0 Jan 21 16:33 acltest3


But my problem is when I access this file from wbscsp02 server ( where NFS server and client both running), It doesn’t give allow to edit or change

$ hostname
wbscsp02
$ whoami
dhaj
$ pwd
/bscs
$ ll acltest3
-rw-rw-r-- 1 bscsprod bscsprod 0 Jan 21 16:33 acltest3
$ touch acltest3
touch: cannot change times on acltest3
$


It is appreciate if you can able to give me some solution to above reason and why is it not possible to access when NFS client also in the NFS Server?

Thanks & Regards
Dhananjaya Amarakoon