HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- getpwnam on hpux 11.0 with NIS
Operating System - HP-UX
1833757
Members
3102
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-14-2002 12:00 PM
05-14-2002 12:00 PM
getpwnam on hpux 11.0 with NIS
calling getpwnam is returning a null pointer when NIS is used for accounts. According to all documentation it should handle NIS maps.But it is not working. Can someone please help me.
No matter how much you kow today you'll have to know more tomorrow.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 12:43 PM
05-14-2002 12:43 PM
Re: getpwnam on hpux 11.0 with NIS
Hi:
I use NIS extensively and have no problems. I threw together a 2 minute C program to test this and it works exactly as expected on both 11.0 and 11.11. I suggest that you try it on your box.
I compiled it with both aCC and the ANSI C compiler and it worked perfectly.
Use it like this as a test:
pwtest user1 user2
It should output the user name, uid, and gid unless an invalid user name is supplield in which case getpwnam() returns NULL and the program outputs an error and stops.
Compile it like this:
cc -Ae pwtest.c -o pwtest OR
aCC pwtest.c -o pwtest
I use NIS extensively and have no problems. I threw together a 2 minute C program to test this and it works exactly as expected on both 11.0 and 11.11. I suggest that you try it on your box.
I compiled it with both aCC and the ANSI C compiler and it worked perfectly.
Use it like this as a test:
pwtest user1 user2
It should output the user name, uid, and gid unless an invalid user name is supplield in which case getpwnam() returns NULL and the program outputs an error and stops.
Compile it like this:
cc -Ae pwtest.c -o pwtest OR
aCC pwtest.c -o pwtest
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2002 12:54 PM
05-14-2002 12:54 PM
Re: getpwnam on hpux 11.0 with NIS
I had one more thought. Are you trying to execute 10.20 compiled code on 11x? If so, we need to do a little configuration on your 11x box. The 10.20 code will not work if you are actually running NIS+.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP