HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding User IDs in NIS environment
Operating System - HP-UX
1833198
Members
2608
Online
110051
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
09-19-2002 08:18 AM
09-19-2002 08:18 AM
Adding User IDs in NIS environment
I'm looking for a command or script similar to useradd, that would modify the password file in /var/yp/src.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 08:42 AM
09-19-2002 08:42 AM
Re: Adding User IDs in NIS environment
Your gonna have to do this yourself. While NIS supports passwords for users in non-default locations, and password -F /var/yp/src/passwd works, the useradd commands dont support external password files.
I think that SAM can be configured for a different password file for NIS users, but not sure about that.
I guess the thought is that if your smart enough to make the system work with a non-default passwd file, then your smart enough to create a user, then tail -1 /etc/passwd >>/var/yp/src/passwd
then delete the entry in /etc/passwd.
If you can code C, then there are lots of useradd program sources floating around. search the forums and I am sure you'll get at least 3-4. Since these mostly use the system calls for pwtmp, you may have lots of mods to do.
Regards,
Shannon
I think that SAM can be configured for a different password file for NIS users, but not sure about that.
I guess the thought is that if your smart enough to make the system work with a non-default passwd file, then your smart enough to create a user, then tail -1 /etc/passwd >>/var/yp/src/passwd
then delete the entry in /etc/passwd.
If you can code C, then there are lots of useradd program sources floating around. search the forums and I am sure you'll get at least 3-4. Since these mostly use the system calls for pwtmp, you may have lots of mods to do.
Regards,
Shannon
Microsoft. When do you want a virus today?
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