cancel
Showing results for 
Search instead for 
Did you mean: 

Change UID and GID on SAP system

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

thomas_valentini
Explorer
0 Kudos

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.

Answers (0)