on 08-15-2008 3:02 PM
Hi
I'd like to change the UID and GID of the <sid>adm and db2<sid> user to ensure they are the same across all systems. Can anyone tell me what the impact of doing this and the best way to do this. Systems are Netweaver 7.0 on Red Hat Enterprise Linux ES release 4 (Nahant Update 4) with DB2 V9.1.
Any assistance appreciated
Thanks
Leigh
Hi!
Best way to change UID and GID of an user is to use "usermod" and "groupmod".
ex:
usermod -u 501 -g 501 <username>; groupmod -g 501 <groupname>
To update files you also should do the following:
find / -xdev -uid <oldUID> -print0 | \
xargs -0r chown <newUID>
(same for group!)
If you change your UID this way, you should not expect problems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.