- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to run inetd service as non-root user
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
05-11-2004 03:10 PM
05-11-2004 03:10 PM
Unable to run inetd service as non-root user
Anyone have any suggestions for this problem? We are testing a customers payroll application under HP-UX 11.11 (currently on 10.20). The app has an inetd service defined to respond on port 5200 as follows
/etc/services -
ouiserv 5200/tcp # CHRIS client server
/etc/inetd.conf -
ouiserv stream tcp nowait chriscs /usr/acuchris/ouinexec ouinexec
What we find is that running the service as a non-root user, we get the following error
[root:maggie]/root # telnet 0 5200
Trying...
Connected to 0.
Escape character is '^]'.
/usr/lib/dld.sl: Can't find path for shared library: libC.sl
/usr/lib/dld.sl: No such file or directory
Connection closed by foreign host.
When run as root it works okay. If we "su -" to the chriscs user, we can run the cmd okay also. Have also tested under HPUX 11.0 and the inetd service works fine as both root & non-root.
Is anyone aware of differences in inetd between 11.0 -> 11.11 ?? Or anything else that we should check?
Thanks
Marc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 03:17 PM
05-11-2004 03:17 PM
Re: Unable to run inetd service as non-root user
Appears to me that you need the location of libC.sl in your SHLIB_PATH env variable.
I find that lib in /usr/lib on my 11.11 systems.
So do the following for that user
export SHLIB_PATH=/usr/lib:$SHLIB_PATH
then try it again. If it then works, add that to the user's .profile.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 05:27 PM
05-11-2004 05:27 PM
Re: Unable to run inetd service as non-root user
Jeff beat me to your solution ... that should get the issue resolved. You may want to look deeper as to why the users profile is different, unless it is truly meant to have different PATH statements than other users. Still, check it out and see what's different.
Adding /usr/lib to the users $PATH should get you fixed right up. Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2004 12:16 AM
05-12-2004 12:16 AM
Re: Unable to run inetd service as non-root user
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 03:44 PM
05-18-2004 03:44 PM
Re: Unable to run inetd service as non-root user
I assume this is your first experience on the ITRC forum as you did not award points to the forumers for the answers you were provided. May I suggest that you take a look at the following link to learn about the points system in use here. Thanks.
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Please read the article, assess the assistance you were provided by the forumers, then reward them. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2004 12:46 AM
06-16-2004 12:46 AM
Re: Unable to run inetd service as non-root user
None of these actually resolved the issue, but did give me the idea to write a wrapper scritp to capture information as the session was established.
For anyone interested, the issue was that under 11.11, a service run as a non-root user did not have a $PWD set. This was an issue because the binary was compiled with a non-absolute path to one of the libraries
../../../inst/lib/libC.sl
obviously impossible to get to without a working directory set initially.
The fix turned out to be the latest 11.11 su cumulative patch.
Thanks for all the replies
Marc