1832757 Members
3088 Online
110045 Solutions
New Discussion

nfs uid problem

 
Kenan Erdey
Honored Contributor

nfs uid problem

hi;

i have a nfs client and server. i want to export a directory whose owner is oracle, with read and write priviliges. on client side again oracle user will access it. problem comes here:

uids of oracle users are different. is there any chance except making uids same, and run chown for all files owned by oracle ?

thanks.
Computers have lots of memory but no imagination
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: nfs uid problem

Shalom Kenan,

If oracle is on the NIS master, and the client is an NIS slave, take the oracle user out of /etc/profile on the slave.

If NIS is not in use change the oracle uid number to be consistent on all hosts. Then chown may be needed on the machine that had the uid change.

Check for uid conflict before making the change. You don't want the oracle and user schmo for example to have the same numeric uid.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: nfs uid problem

Correction

change /etc/profile

to /etc/passwd

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Antonio Cardoso_1
Trusted Contributor

Re: nfs uid problem

what about gid of oracle users on both sides: also different? shared with other users ?
Kenan Erdey
Honored Contributor

Re: nfs uid problem

yes, they are different.
Computers have lots of memory but no imagination
Antonio Cardoso_1
Trusted Contributor

Re: nfs uid problem

so i'm affraid you need to change UID on client side...
Kenan Erdey
Honored Contributor

Re: nfs uid problem

thanks. sam will did the file changes also.
started oracle ias. nothing has gone wrong yet.
Computers have lots of memory but no imagination