Target users environment

Robert Cross Robert.Cross at
Fri Sep 6 04:52:50 EDT 2002

Sorry if this is a RTFM question.

We've got a lot of scripts that run as root that do
 su - someuser "-c cd somedir; ${somesymbol}/someprogram"

now these rely on the 'su -' part, i.e. inheriting the default enviroment
of 'someuser'. Is there
anyway to use sudo to do this?

Part of my problem with this is that there is so much su activity going on
because of the scripts,
it's difficult to see a 'real' su that a user has done.


Bob Cross.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This message is confidential.  It may also be privileged or
protected by other legal rules.  It does not constitute an
offer or acceptance of an offer, nor shall it form any part
of a legally binding contract.  If you have received this
communication in error, please let us know by reply then
destroy it.  You should not use, print, copy the message or
disclose its contents to anyone.

E-mail is subject to possible data corruption, is not
secure, and its content does not necessarily represent the
opinion of this Company.  No representation or warranty is
made as to the accuracy or completeness of the information
and no liability can be accepted for any loss arising from
its use.

This e-mail and any attachments are not guaranteed to be
free from so-called computer viruses and it is recommended
that you check for such viruses before down-loading it to
your computer equipment.  This Company has no control over
other websites to which there may be hypertext links and no
liability can be accepted in relation to those sites.

Scottish Courage Limited
Registered in Scotland, Registered Number 65527
Registered Office: 33, Ellersly Road, Edinburgh, EH12 6HX
Head Office: 160 Dundee Street, Edinburgh, EH11 1DQ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

More information about the sudo-users mailing list