- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Adding User Accounts to NIS without using SAM
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
02-03-2005 06:48 AM
02-03-2005 06:48 AM
I would like to know what exact commands are being used to do this task. A script is going to be written to do this process instead of going into SAM.
For example, a user is added to the passwd.nis file, the maps then need to be generated (what command line & switches to do this), and then pushed out (again need command line syntax to push to secondary server).
Would appreciate a quick reply.
Angie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 07:02 AM
02-03-2005 07:02 AM
Re: Adding User Accounts to NIS without using SAM
The command you wish to use is useradd
man useradd shows several NIS options which I can not test.
After the user is created and you are happy with the nis accounts, yppush can push the commands out.
I can not be more specific, because we don't use NIS here.
You wanted a quick answer, and this one will at least get you started.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 07:16 AM
02-03-2005 07:16 AM
Re: Adding User Accounts to NIS without using SAM
Well the user can be added with Useradd indeed... its the command line I need of pushing the maps out, etc.
Anyone using NIS out there? Ha!
Angie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 07:35 AM
02-03-2005 07:35 AM
Re: Adding User Accounts to NIS without using SAM
http://www2.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fsearch.hp.com%2Fredirect.html%3Furl%3Dhttp%253A%2F%2Fforums1.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%253FthreadId%253D635081%26qt%3D%252BNIS%2B%252Bpushing%2B%2B%252Bpassword%2B%252Bmaps%2B%26hit%3D1&aid=SEARCH_FORUMS&pil=1&serStr=NIS+pushing+password+maps&pir=1
Some hopefully helpful manual entries.
http://www2.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FB1031-90053%2Fch04s06.html&aid=SEARCH_MANUAL&pil=9&serStr=NIS+pushing+password+maps
http://www2.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FB1031-90053%2Fch08s02.html&aid=SEARCH_MANUAL&pil=12&serStr=NIS+pushing+password+maps
http://www2.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fdocs.hp.com%2Fen%2FB1031-90054%2Fch04s07.html&aid=SEARCH_MANUAL&pil=21&serStr=NIS+pushing+password+maps
Last one looks promising.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 07:53 AM
02-03-2005 07:53 AM
Re: Adding User Accounts to NIS without using SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2005 08:28 PM
02-03-2005 08:28 PM
SolutionIf you edit the passwd.nis file and add the user in there, then you need to push the nis map out: -
/var/yp/make passwd
If you want to change the users password in the NIS domain then use: -
yppasswd
you might need to run
/var/yp/make passwd
again to push it out.
Slave NIS servers should update them selves automatically periodicaly, or you can run this from the slave.
/var/yp/ypxfr passwd.byname
Sime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2005 09:25 AM
02-04-2005 09:25 AM
Re: Adding User Accounts to NIS without using SAM
Angie