[sudo-users] env_keep with sudo (NLSPATH) does not work as expected
Suter Thomas
thomas.suter at rtc.ch
Wed Aug 24 15:36:23 EDT 2005
Hi,
I have a problem with the NLSPATH variable with the env_keep flag set in the sudo config. The variable changed to nLSPATH (first char lowercase).
This happens in solaris 8 but not in solaris 9.
What's wrong ? Any help ?
Kind regards tom
env_keep with sudo (NLSPATH) does not work as expected
******************************************************
solaris:
========
2.8 (117350-24)
sudo config (1.6.8p9):
======================
User_Alias CICS_ADM=cics
Cmnd_Alias CICS_ENV=/usr/bin/env
Defaults env_reset , env_keep=*
CICS_ADM ALL = NOPASSWD: CICS_ENV
sudo test (user: cics):
=======================
$ /usr/bin/env |grep -i NLSPATH NLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/
encina/msg/%L/%N:/opt/encina/msg/C/%N
no try with sudo:
=================
$ sudo -l
User cics may run the following commands on this host:
(root) NOPASSWD: /usr/bin/env
$ sudo /usr/bin/env |grep -i NLSPATH nLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/
encina/msg/%L/%N:/opt/encina/msg/C/%N
THE FIRST CHARACTER CHANGED TO LOWERCASE!!
now same thing with solaris 9
=============================
solaris:
========
2.9 (117171-15)
sudo config (1.6.8p9):
======================
User_Alias CICS_ADM=cics
Cmnd_Alias CICS_ENV=/usr/bin/env
Defaults env_reset , env_keep=*
CICS_ADM ALL = NOPASSWD: CICS_ENV
sudo test (user: cics):
=======================
$ /usr/bin/env |grep -i NLSPATH
NLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/
encina/msg/%L/%N:/opt/encina/msg/C/%N
no try with sudo:
=================
$ sudo -l
User cics may run the following commands on this host:
(root) NOPASSWD: /usr/bin/env
$ sudo /usr/bin/env |grep -i NLSPATH
NLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/
encina/msg/%L/%N:/opt/encina/msg/C/%N
NOW THE NLSPATH VARIABLE REMAINS UNCHANGED!!
More information about the sudo-users
mailing list