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

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
esivaprasad
Participant
Posts: 135
Joined: Tue Dec 09, 2008 10:35 am

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

Post 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.
Siva
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post 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.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post 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.
Choose a job you love, and you will never have to work a day in your life. - Confucius
esivaprasad
Participant
Posts: 135
Joined: Tue Dec 09, 2008 10:35 am

Post 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 .
Siva
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post 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.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply