LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   is this really unusual or it happens everytime ? (https://www.linuxquestions.org/questions/linux-newbie-8/is-this-really-unusual-or-it-happens-everytime-4175430665/)

isourabh.wadhwa 10-05-2012 06:47 AM

is this really unusual or it happens everytime ?
 
I have a Filesystem shared to two linux servers.

server1 > Red Hat Linux Advanced Server release 2.1AS (Pensacola)
server2 > Red Hat Enterprise Linux Server release 5.7 (Tikanga)

whenver we create a file in server 1 and change ownership to oracle:dba
uid=600(oracle)
gid=110(dba)

on server2 we see ownership as 600:110.

What could be the problem? I know its showing uid and gid of oracle and dba from server1, do we really have to make the passwd and group file in sync to overcome this or there is any other way to bypass this situation?


I'll give you one more example:
my uid on server1 is 967 and on server2 its 1123. and 967 on server2 belongs to a "jesse" when i do
Code:

chown my_id:my_id filenameon server1
it shows ownership of jesse on server2

pan64 10-05-2012 06:49 AM

probably you have configured local users and groups and oracle:dba defined only on the server1 (therefore it could not be recognized by server2)

isourabh.wadhwa 10-05-2012 07:23 AM

Quote:

Originally Posted by pan64 (Post 4797969)
probably you have configured local users and groups and oracle:dba defined only on the server1 (therefore it could not be recognized by server2)

:)

My point is if "üid" of "dba" is 600 on server1 and on server2 "600" is uid of "me", it'll show that the file is owned by "me" when checked from server2 but I want it should reamain "dba" whose "uid" on server2 is something else, say "601".

TobiSGD 10-05-2012 07:42 AM

Not possible. If you want it to show the correct ownership you have to use the same UID and GID on both systems for the same user/group.


All times are GMT -5. The time now is 09:24 AM.