Unix Technical Forum

LIBPATH and cron/at

This is a discussion on LIBPATH and cron/at within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, On an AIX 5.3 installation, I have a LIBPATH like this in /etc/environment: LIBPATH=/usr/lib:/lib:/home/db2inst2/sqllib/lib:/home/db2inst2/sqllib/ odbc/lib However, cron/at seems ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 11:49 AM
Troels Arvin
 
Posts: n/a
Default LIBPATH and cron/at

Hello,

On an AIX 5.3 installation, I have a LIBPATH like this in
/etc/environment:

LIBPATH=/usr/lib:/lib:/home/db2inst2/sqllib/lib:/home/db2inst2/sqllib/
odbc/lib

However, cron/at seems to strip off this environment variable before
executing jobs (other stuff from /etc/environment seems to pass through
to the jobs alright).

Is there a way to configure cron/at to let the variable live? - Or is
there another way to make aix look into additional directories for
libraries? (In linux, I'd use /etc/ld.so.conf or the /etc/ld.so.conf.d
directory to add library paths - does AIX have something similar?)

(Of course, I could tell the users to specifically add environment-
related things to their cron-jobs, but I'd rather remove unnecessary
complexity.)

--
Regards,
Troels Arvin <troels@arvin.dk>
http://troels.arvin.dk/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 11:49 AM
Paul Landay
 
Posts: n/a
Default Re: LIBPATH and cron/at

Troels Arvin wrote:

> Hello,
>
> On an AIX 5.3 installation, I have a LIBPATH like this in
> /etc/environment:
>
> LIBPATH=/usr/lib:/lib:/home/db2inst2/sqllib/lib:/home/db2inst2/sqllib/
> odbc/lib
>
> However, cron/at seems to strip off this environment variable before
> executing jobs (other stuff from /etc/environment seems to pass through
> to the jobs alright).
>
> Is there a way to configure cron/at to let the variable live? - Or is
> there another way to make aix look into additional directories for
> libraries? (In linux, I'd use /etc/ld.so.conf or the /etc/ld.so.conf.d
> directory to add library paths - does AIX have something similar?)
>
> (Of course, I could tell the users to specifically add environment-
> related things to their cron-jobs, but I'd rather remove unnecessary
> complexity.)
>


The LIBPATH is reset on purpose is some cases, as a
security measure to prevent 'trojan horse' situations.
For example, see what this says about 'suid' programs:
http://publib.boulder.ibm.com/infoce...etrf1/exec.htm

Paul Landay
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com