Page 1 of 1

change ownership uid=0 to some other value other than 0

Posted: Mon Apr 09, 2012 8:34 am
by esivaprasad
While installing datastage we used root and in the installation process
we gave admin id as 'dsadm'
1.We need to change ownership uid=0 to some other value other than 0
without affecting our current installation /environment.
Currently we have:/home/dsadm# id dsadm
uid=0(root) gid=0(root)
we want to change it like:/home/dsadm# id dsadm
uid=23186(dsadm) gid=16284(gdstage) -- For example

Please help me by your suggestions/idea .
Thanks in advance for all your support.

Posted: Mon Apr 09, 2012 12:37 pm
by PaulVL
You need to ask IBM for the steps (if any) to execute DataStage as a user id other than ROOT.

do not change uid 0 to something else.

Posted: Mon Apr 09, 2012 9:35 pm
by qt_ky
I agree--don't change the uid=0 value to some other value. I think it could mess up your whole server. If you screw up as the root user, someone will take root user access away from you, most likely for good.

Are you really just wanting to change ownership of some files from the root user to some other user, such as dsadm? If so then use the chown command.

What do you really want to accomplish? Rephrase it, run it by IBM Support if possible, and work together with a UNIX admin.

Posted: Mon Apr 23, 2012 1:55 am
by esivaprasad
when i checked in dsengine path,files are like this
":/vol01/dsadm/Ascential/DataStage/DSEngine# ls -lrt
total 3650
-rw-rw-r-- 1 23186 gdstage 16384 Oct 31 2007 &MAP&
-rw-r--r-- 1 23186 gdstage 10240 Oct 31 2007 BLTRS
-rw-r--r-- 1 23186 gdstage 14336 Oct 31 2007 DICT.DICT
-rw-r--r-- 1 23186 gdstage 4096 Oct 31 2007 D_REVISE.DISCS
-rw-r--r-- 1 23186 gdstage 1536 Oct 31 2007 D_PTERM.FILE
-rw-r--r-- 1 23186 gdstage 4096 Oct 31 2007 D_MENU.FILE
-rw-r--r-- 1 23186 gdstage 4096 Oct 31 2007 D_MAP
-rw-r--r-- 1 23186 gdstage 4096 Oct 31 2007 D_CAT"
we are planning to change file owner 23186 to dsadm,all files in engine path and project folder path.
Can it work fine or not ?
Please give your valueble suggestion.
Thanks in advance for all your support .

Posted: Mon Apr 23, 2012 7:12 pm
by qt_ky
I think changing file owner 23186 in your specific case to dsadm is fine. Just backup the system before making any massive changes, especially recursive changes.