- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 11.23 PA logins command - return code 236
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
Discussions
Discussions
Forums
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
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
тАО11-26-2009 02:26 AM
тАО11-26-2009 02:26 AM
11.23 PA logins command - return code 236
logins -oxl root ; echo $?
> 236
However on 11.31 I get the expected code 0
logins -oxl root ; echo $?
> 0
The output is correct for both versions and contains no error data.Can anyone explain this ? Its causing problems with some automation
we are using which calls the logins command and check the exit status.
- Tags:
- logins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2009 12:12 PM
тАО11-26-2009 12:12 PM
Re: 11.23 PA logins command - return code 236
I suppose you could run tusc on it to see what it returns and where.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2009 01:16 AM
тАО11-27-2009 01:16 AM
Re: 11.23 PA logins command - return code 236
"the wait() system call returns the lowest 8 bits of the actual return code.
It is treated as if it were an "unsigned char" in effect. It is not. So, negative small numbers returned become return values > 127, for example. Think ~(return value), we saw this on migrating from 11.0 to HPUX 11.23 PA_RISC-2 boxes, running 32 bit mode code. The 11.0 code is binary compatible, so we did not recompile.
Create a hashed alias in /etc/profile: a shell script wrapper for logins. It masks the return value to zero or 1. We ran into other commands that do this as well."
Running Tusc ..
write(1, "r o o t : 0 : s y s : 3 : : / : ".., 44) ..... = 44
getpid() ..................................... = 10519 (10518)
unlink("/var/spool/sockets/pwgr/client10519") ............ = 0
exit(236) ...................................... WIFEXITED(236)
236
I guess I will have to raise a problem for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-30-2009 05:36 PM
тАО11-30-2009 05:36 PM
Re: 11.23 PA logins command - return code 236
When I try your example on 11.23, I get 0.
>exit(236) ........ WIFEXITED(236) 236
You may have to get out your debugger to see where it occurs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 01:09 PM
тАО12-01-2009 01:09 PM
Re: 11.23 PA logins command - return code 236
Never happened under 11.11.
I wrote a security script that checks this, and it kept failing until I realized it was returning 236
Could use some help as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 02:12 PM
тАО12-01-2009 02:12 PM
Re: 11.23 PA logins command - return code 236
This system has been patched in the last month with all patches recommended by an SWA analysis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2009 08:22 PM
тАО12-01-2009 08:22 PM
Re: 11.23 PA logins command - return code 236
I was using an Integrity box and am not sure why it should be different unless it is falling off the end of main with no return?
(Ah, the IPF C/aC++ compiler supports the C99 and C++ Standards that require this to return 0.)
I'll see if I can find a PA executable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2009 02:30 PM
тАО12-02-2009 02:30 PM
Re: 11.23 PA logins command - return code 236
Yes, this is exactly the problem, it fell off the end. It was fixed for 11.31.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 06:34 AM
тАО03-12-2010 06:34 AM
Re: 11.23 PA logins command - return code 236
Is it something that HP might consider getting a patch released for ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2010 11:46 AM
тАО03-12-2010 11:46 AM
Re: 11.23 PA logins command - return code 236
Possibly, have you contacted the Response Center?