Have you tried the man pages of the OS and/or google for answers?
Guess it somewhat depends on your actual sudo and operating system implementation,
but I relatively quickly found the following link
http://www.gratisoft.us/sudo/man/sudo.html

Check the various options and their interactions with environment variables, as it looks like this approach may be what you're looking for.

Hope this helps.

Regards,
Scott Richardson
Sr. Systems Engineer *  IT Consultant
Marlborough, MA 01752

John Rodgers wrote:
I have a problem with a developer login where we want to provide 'root'
privileges on our DEV box.

HP-UX B.11.11 U 9000/800 (tl)
UniVerse 9.6 in Pick flavor


This is done by changing the login profile to run something this:

exec /usr/local.bin/sudo /usr/opt/uv/bin/uv

This gives us 'root' access in UniVerse.

For one user this is not working but I cannot spot any difference in his
setup from anyone else's.


The exec sudo (above) is changing the user id to root.
For our other users the @LOGNAME in UniVerse does not change.
Our login process relies on the @LOGNAME to perform some other checks
which are now failing for this user.

Can anyone explain why the user.id would be changed by 'sudo'.
Is there some setting or switch for sudo where this is controlled?

Alternatively, is there a UniVerse option where the User Name might be
somehow reset? (really clutching at straws here.)

Cheers
JR

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users


_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to