Unix Security and Job Compilation

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Put into the S99ds.rc script a umask entry, 002 works the best. Do not try to put it into the dsenv file, as that file is parsed and only environment settings are pulled. Umask will allows users in the same group to share access to jobs, logs, and output files. You should not split groups in the same project, the results you have already seen. Ultimately,

In addition, your production environment should probably run all jobs under a single user, preferably a system account. There you can tighten umask to 002. Your librarian should import and compile jobs under that user id as well.

Kenneth Bland
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Support has a nice little one-page document on setting up a Unix-based DataStage server for multiple users, they should be able to send it to you if you ask. Basically, it is a matter of setting the umask in the .rc script as Ken suggests and setting the 'sticky bit' of the projects directory.

-craig

ps. Was that a recursive 'chmod'?
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Louise

I always set umask 002 in the dsenv as well. Craig is correct. You need to set the group id so anyone in the group can delete files created by other users in that group. All users including dsuser1 and dsadm need to be in the same group. So the correct chmod is:

chmod -R 4770 projectdir

Kim.

Kim Duke
DsWebMon - Monitor DataStage over the web
www.Duke-Consulting.com
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

You must be root to do this.

Go to this file:

$dshome/sample

Edit this file:

ds.rc

Remove the "#" on this line: (Line #9)

#umask 002

Save file.

Restart DataStage: (make sure nobody's online, and no CLOSE_WAIT sessions are remaining, blah blah blah)

$dshome/bin/uv -admin -stop (wait 2 minutes)
$dshome/bin/uv -admin -start

Problem solved for any future import/creation. You will need to go to the Projects folder and chmod 775 on everything within it.

-T.J.


* * *

... now if this can make breakfast, my life is complete.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

TJ

Getting caught up. Some of these replys are on week old topics. How long does it take you to eat breakfast anyway?

Kim.

Kim Duke
DsWebMon - Monitor DataStage over the web
www.Duke-Consulting.com
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Post by Teej »

kduke wrote:
Getting caught up. Some of these replys are on week old topics. How long does it take you to eat breakfast anyway?
:lol: Well, when your company is eating up all of your time in many wild schemes that somehow is coming together in one piece...

:roll: It's a mess here.

BTW, are you going to be at AscentialWorld?

-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

TJ

I am so glad you finally got breakfast and you are now working on lunch.

Kim.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:!:
Beware of an anomaly.

/etc/rc2.d/S99ds.rc (your path may differ) is executed when UNIX is started (or if invoked directly).

$DSHOME/sample/ds.rc is executed when ds -admin -start is used.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

On my HP/UX system, the rc2.d file is actually a symbolic link back to the so-called "sample" file... so they are one in the same!
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

(singing) It ain't necessarily so!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Wow - Point Master of the Universe and he sings, too! :shock:

Agreed. Understood. Concur. But as you said - it ain't necessarily so. :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Point Master of the Universe? So who's lackey am I? :lol:
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That was a retorical question, right?

Perhaps I should have said Post Master. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Paul Preston
Participant
Posts: 24
Joined: Wed Apr 02, 2003 7:09 am
Location: United Kingdom

Post by Paul Preston »

Craig

I'm probably culturally deficient in my knowledge but why does it always say "Bunnies, bunnies, it must be bunnies after your name" ?
Post Reply