- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vendor software user authentication problem
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
01-19-2007 06:34 AM
01-19-2007 06:34 AM
There's a problem when using the vendor's software. They haven't been able to figure it out yet. When a user, on a pc, tries to get started doing something, looking at some archived data, or defining some data to be archived, one of the first things that happens is a user authentication on the HP_UX system. The authentication is failing. They say their software relies on standard HP-UX authentication for users. Attempting to figure this out, I put tusc on their process. The trace has lines indicating the code is interrogating the tcb.
But here's the weird thing that my question is about. The trace shows the code is looking for a file, /tcb/files/auth/Z/Zuser-t . But there is no user in our system named "Zuser-t". The userid of the account that installed the software and that is being used to try to use the product is "Zuser". And, the vendor claims there is no way that their software is tacking on the "-t" to the end of the user name. They are suggesting HP-UX is doing that. Which I don't believe. But here we are.
I don't see the string Zuser-t anywhere in any file on the system, including syslog.log and /var/adm/btmp.
Is there a way, other than the tusc trace I've already done, to see what the vendor's software is passing to HP-UX authentication? Is it possible HP-UX trying to stat the file /tcb/files/auth/Z/Zuser-t is just a red herring? Maybe that's somehow normal hp-ux behavior? Or is it possible there is a bug in hpux authentication whereby "-t" is arbitrarily appended to a userid string that it is going to try to authenticate? Or must it be the vendor's software passing that to hp-ux?
Here is the relevant section from the trace:
open("/etc/passwd", O_RDONLY, 0666) ...................... = 34
ioctl(34, TCGETA, 0x7800b5d8) ............................ ERR#25 ENOTTY
read(34, "r o o t : * : 0 : 3 : : / r o o ".., 8192) ..... = 8192
lseek(34, 4294962680, SEEK_CUR) .......................... = 3576
close(34) ................................................ = 0
stat("/tcb/files/auth/Z/Zuser-t", 0x7800b300) ............ ERR#13 EACCES
open("/tcb/files/auth/Z/Zuser", O_RDONLY, 0666) .......... ERR#13 EACCES
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:03 AM
01-19-2007 07:03 AM
Re: vendor software user authentication problem
I believe you, but, unexperienced and ignorant as I am about this, it leads me to the question, - since there is already a field or several fields regarding lock out status in the regular file in the tcb by the account name Zuser, what is the need of another file with -t appended to the name for lockout? Rhetorical question, I don't really need to know, just seems unnecessary, but I trust there is a reasonable explanation.
Anyway, onward with the problem at hand...
# /usr/lbin/getprpw Zuser
uid=527, bootpw=NO, audid=1318, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-
1, spwchg=Mon Nov 13 14:57:35 2006, upwchg=-1, acctexp=-1, llog=-1, expwarn=-1,
usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltp
w=DFT, timeod=-1, slogint=Fri Jan 19 10:33:09 2007, ulogint=Thu Jan 4 15:47:56
2007, sloginy=pts/tb, culogin=-1, uloginy=pts/tc, umaxlntr=-1, alock=NO, lockout
=0000000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:13 AM
01-19-2007 07:13 AM
Re: vendor software user authentication problem
root /root # /usr/lbin/getprpw tr19630
uid=1000, bootpw=NO, audid=31, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Thu Dec 21 14:47:04 2006, upwchg=Fri Sep 22 10:57:24 2006, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Thu Dec 21 14:47:11 2006, ulogint =Fri Jan 19 12:06:37 2007, sloginy=-1, culogin=3, uloginy=pts/tf, umaxlntr=-1, a
lock=NO, lockout=0001000
root /root # find /tcb/files/auth -type f -name "*-t" -print
root /root # ll /tcb/files/auth/t/tr19630*
-rw-rw-r-- 1 root root 285 Jan 19 12:06 /tcb/files/auth/t/tr19630
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:21 AM
01-19-2007 07:21 AM
Re: vendor software user authentication problem
Try it for yourself.
touch /tcb/files/auth/y/youraccount-t
You won't be able to login until the lock file is removed.
We're getting off topic too. :)
Maybe attaching more of the tusc output would help. Curious to see what is captured after open("/tcb/files/auth/Z/Zuser"
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:37 AM
01-19-2007 07:37 AM
Re: vendor software user authentication problem
The entire trace file is huge, and I was reluctant to attach the whole thing without "sanitizing" it ( maybe it doesn't really need it, but for one thing, just in the part I posted already, I altered the actual user name while retaining the critical problem information, because it contained part of the vendor's name and I didn't want to say anything to identify them them. I don't even know if there's anything else in there that might benefit from being sanitized.)
Anyway, attached is a little more of the trace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:51 AM
01-19-2007 07:51 AM
Re: vendor software user authentication problem
Can you also post the passwd entry from /etc/nsswitch.conf file?
If it's nis+ and trusted, problem might be from having "compat" mode in nsswitch.conf for passwd.
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:56 AM
01-19-2007 07:56 AM
Re: vendor software user authentication problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 07:57 AM
01-19-2007 07:57 AM
Re: vendor software user authentication problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 08:02 AM
01-19-2007 08:02 AM
Re: vendor software user authentication problem
The vendor's daemon is not running as root. It is running as Zuser. Anyway, I think the trace shows it is trying to open in read-only mode, and the tcb file is world readable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 08:10 AM
01-19-2007 08:10 AM
Re: vendor software user authentication problem
pam_authenticate is possibly returning error "No account present for user" which causes the login to fail.
Is it ok to post the pam.conf and pam_user.conf?
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 08:13 AM
01-19-2007 08:13 AM
Re: vendor software user authentication problem
#
# PAM Configuration
#
# Account Management
#
dtaction account required /usr/lib/security/libpam_unix.1
dtlogin account required /usr/lib/security/libpam_unix.1
ftp account required /usr/lib/security/libpam_unix.1
login account required /usr/lib/security/libpam_unix.1
su account required /usr/lib/security/libpam_unix.1
rt4s account required /usr/lib/security/libpam_unix.1
OTHER account required /usr/lib/security/libpam_unix.1
#
# Authentication Management
#
dtaction auth required /usr/lib/security/libpam_unix.1
dtlogin auth required /usr/lib/security/libpam_unix.1
ftp auth required /usr/lib/security/libpam_unix.1
login auth required /usr/lib/security/libpam_unix.1
su auth required /usr/lib/security/libpam_unix.1
rt4s auth required /usr/lib/security/libpam_unix.1
OTHER auth required /usr/lib/security/libpam_unix.1
#
# Password Management
#
dtaction password required /usr/lib/security/libpam_unix.1
dtlogin password required /usr/lib/security/libpam_unix.1
login password required /usr/lib/security/libpam_unix.1
passwd password required /usr/lib/security/libpam_unix.1
OTHER password required /usr/lib/security/libpam_unix.1
#
# Session Management
#
dtaction session required /usr/lib/security/libpam_unix.1
dtlogin session required /usr/lib/security/libpam_unix.1
login session required /usr/lib/security/libpam_unix.1
OTHER session required /usr/lib/security/libpam_unix.1
root /root # cat /etc/pam_user.conf
#
# This file defines PAM configuration for a user. The configuration
# here overrides pam.conf.
#
# The format for each entry is:
# user_name module_type module_path options
#
# For example:
#
# user_a auth /usr/lib/security/libpam_unix.1 debug
# user_a auth /usr/lib/security/libpam_dce.1 try_first_pass
# user_a password /usr/lib/security/libpam_unix.1 debug
#
# user_b auth /usr/lib/security/libpam_unix.1 debug use_psd
# user_b password /usr/lib/security/libpam_unix.1 debug use_psd
#
# See the pam_user.conf(4) manual page for more information
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 08:20 AM
01-19-2007 08:20 AM
Re: vendor software user authentication problem
See if you can cat the file as the user. If you can't then that might be the problem. If you can then you have a security problem because password hashes shouldn't be visible to normal users in trusted mode. Either way you'll know something more than you do now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 08:23 AM
01-19-2007 08:23 AM
Re: vendor software user authentication problem
A non-root user wouldn't have access to /tcb/files/auth/Z/.
Have you tested running the daemon as root to verify that this isn't the problem?
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 09:02 AM
01-19-2007 09:02 AM
Re: vendor software user authentication problem
In your trace before open /etc/passwd, do you see entries for getpwnam or getspwnam?
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 09:03 AM
01-19-2007 09:03 AM
Re: vendor software user authentication problem
Right, Zuser cannot cat the tcb file.
I have not tested running the daemon as root. Let me see if I can do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 04:40 AM
01-23-2007 04:40 AM