Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 02:55 AM
06-23-2003 02:55 AM
Sudo
I wanna to install the sudo 1.6.6 into our HPUX 11.00 & 11i machine, however after reading the README, I found 1 big issue which quite confuse me, it stating
Quote:
Sudo tries to clear the environment of dangerous environment variables
such as LD_* to prevent shared library spoofing. If you are porting
sudo to a new OS that has shared libraries you'll want to mask out
the variables that allow one to change the shared library path.
See initial_badenv_table() in env.c to see how this is done for
various operating systems.
End Quote:
Some of our programs will require LD_PRELOAD env variable to work for Dynamic Library Linkage, also in the table above message mention, I also found "SHLIB_*" definition in the called initial_badenv_table() , which some other program will also require this SHLIB_* to work, I really have no idea what above message mean and what will be impact to those applications after I install it, could someone pls help to clear up, many thx.
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:00 AM
06-23-2003 03:00 AM
Re: Sudo
I see no such note in the README file for the pre-built version at the Porting and Archive Centre. Try downloading from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:07 AM
06-23-2003 03:07 AM
Re: Sudo
Just a thought. In this case, it may affect the application. Sudo, clearly says that it will remove LD_* variables.
A fix would be to create a shell script that exports all these variables and then run the application. You can invoke the application via the shell script using sudo.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:34 AM
06-23-2003 03:34 AM
Re: Sudo
Sorry give some wrong info, in fact, u can check the file PORTING in the source dir.
Also our current setting is set those LD_* in the application ID .profile / .cshrc. But seems it will not remove it after I test install it, so I really wonder what above sentence mean?? Many thx.
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 03:41 AM
06-23-2003 03:41 AM
Re: Sudo
I looked at the README file as posted at http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/readme.html which must be different than what you're seeing. Sorry for any confusion.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 10:14 AM
06-23-2003 10:14 AM
Re: Sudo
when you run a program with sudo, it (sudo) will clear (or empty) certain environment variables before starting the new program. It does this to prevent some well known hacks.
The important thing to remember is that sudo only clears these variables, it does not 'disable' them. There is no reason why the 'called' program should not set these environment variables to whatever you need them to be set to.
As Umapathy pointed out, you can use sudo to start a shell which sets up the environment you need and then exec's the program.
HTH,
Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2003 10:53 AM
06-23-2003 10:53 AM
Re: Sudo
env | sort > /tmp/user1
sudo -u user2 env | sort > /tmp/user2
diff /tmp/user1 /tmp/user2
In my case,
SHLIB_PATH
TERMCAP
TERMINFO
were missing from the sudo environment.