We have two systems (well we have more but these are the only two I am interested in
) - DEV and PROD.
In DEV we can create a file as the oracle user, eg:
[root@dev]# touch test.txt
[root@dev]# chown oracle:oinstall test.txt
[root@dev]# chmod 644 test.txt
[root@dev]# ls -lah test.txt
-rw-r--r-- 1 oracle oinstall 11 Jul 4 15:16 test.txt
When we move it to /var/tmp it gets changed to the user moving it:
[simon.tann@dev ~]$ mv test.txt /var/tmp/
[simon.tann@dev ~]$ ls -lah /var/tmp/test.txt
-rw-r--r-- 1 simon.tann domain users 11 Jul 4 15:16 /var/tmp/test.txt
When do the same thing in our production environment the user stays as the oracle user.
Can anyone tell me why this is happening? Is it something to do with groups or file creation masks?