- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding NIS user accounts
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
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
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
тАО12-22-2009 08:36 AM
тАО12-22-2009 08:36 AM
Adding NIS user accounts
We have an NIS domain that contains a master and two NIS slave servers with the user home directories located on one of the latter systems. The master NIS server is running HP-UX 11.00 while the slave servers are running the 11.11 release.
When it comes time to add new user accounts, the home directories need to be located on the slave server. When I create the accounts, preferably through SAM, do I need to run the utility on the slave server in question, or is there a way to do this procedure on the master? If I run the procedure on the slave server, does NIS automatically update, or do I need to do the update manually? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 08:55 AM
тАО12-22-2009 08:55 AM
Re: Adding NIS user accounts
> through SAM, do I need to run the utility
> on the slave server in question, or is
> there a way to do this procedure on the
> master?
It's called the master for a reason. If you
want the new accounts to be in the NIS data
base, then you should probably add them on
the NIS master server.
> [...] the home directories need to be
> located on the slave server.
Who cares? Home directory paths are just
character strings in "/etc/passwd" (or
wherever). Someone probably needs to create
each user's home directory sometime, but that
operation has little to do with NIS. If you
want SAM to create the things, then it'd help
if it could use NFS (or something) to do
that, but (without actually looking) I'd
assume that you could create the directory
outside of SAM, and tell SAM not to worry its
pretty little head.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 07:19 AM
тАО12-23-2009 07:19 AM
Re: Adding NIS user accounts
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 07:40 AM
тАО12-23-2009 07:40 AM
Re: Adding NIS user accounts
Add the accounts on the master server. You should not have to create home directories on the slaves manually if NIS is working right and the home directory is present.
ypmake
# When done.
All NIS accounts must be created on the master server.
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
тАО12-29-2009 01:14 PM
тАО12-29-2009 01:14 PM
Re: Adding NIS user accounts
I went through the motions of creating a new user account on the master NIS server and running the ypmake command after the user account was created. There were no apparent error messages. Because the slave NIS server is where the user home directory will be located, I ran the chown and chmod commands on the master NIS server so that root would own the newly created directory and only root would have access to it.
I then went to the slave NIS server, and created a copy of the user home directory. The problem that I am seeing is the following: When I tried to change the ownership of the directory on the slave server so the user account would own it, the error message I encountered was the following:
unknown user id
When I log into the any of the nis servers or clients as the user in question, I am able to do so. However, because the home directory on the slave server is still owned by root, the user account cannot save any files within it. I ran the ypcat passwd command with the username, and it did give the expected output for the user.
I tried running the ypxfr passwd.byname and the ypxfr passwd.byuid commands from the slave nis server, but the response I got in both cases was the mapfile on the master nis server was not newer than that on the slave server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2009 01:33 PM
тАО12-29-2009 01:33 PM
Re: Adding NIS user accounts
commands with their actual output, instead of
these confusing descriptions. References to
"the newly created directory" and "created a
copy of the user home directory" are not
telling me anything which I can grasp
securely.
> unknown user id
> When I log into [...] I am able to do so.
These would seem (to me) to be inconsistent.
Potentially interesting info:
Contents of "/etc/nsswitch.conf" files.
Output from "domainname" everywhere.
Output from "ypwhich -m" everywhere.
Output from "ypcat passwd | grep
where the chown command fails.
The actual failing chown command, and enough
"ls -l" output to show what's what, where.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2009 06:26 AM
тАО12-30-2009 06:26 AM
Re: Adding NIS user accounts
At least, the output YOU have expected.
yepp, Steven has right. If you want us to help you, provide the exact commands and its outputs.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2009 03:32 PM
тАО12-30-2009 03:32 PM
Re: Adding NIS user accounts
Sorry about the confusion. The commands in question are the following:
1. When trying to change the ownership of the directory on the slave NIS server, the command syntax was the following:
chown baw32:users baw32
This generated the error:
unknown user id baw32
The contents of the /etc/nsswitch.conf file are included as an attachment to this posting.
The output of the domainname command from both master and slave nis servers is radonc. This is the correct name of the domain.
The output of the ypwhich -m command, which was also run on the master and slave servers, is shown below:
netgroup.byuser space
ypservers space
servi.bynp space
auto.master space
mail.aliases space.mgh.harvard.edu
mail.byaddr space
netid.byname space
publickey.byname space
services.byname space
rpc.bynumber space
protocols.bynumber space
protocols.byname space
passwd.byuid space
passwd.byname space
networks.byname space
networks.byaddr space
netgroup.byhost space
group.byname space
rpc.byname space
netgroup space
hosts.byname space
hosts.byaddr space
group.bygid space
The space server is the master nis server, so the output appears to be correct.
The output for the ypcat passwd command on the slave nis server, where the problem is occurring is shown below:
baw32:NAXMnjvsqzIm6:225:20:,,,:/usr/oahu/baw32:/usr/local/bin/tcsh
Here is the output of the chown commmand that is failing:
root@cosmos1:/user2> pwd
/user2
root@cosmos1:/user2> chown baw32:users baw32
chown: unknown user id baw32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 07:49 AM
тАО12-31-2009 07:49 AM
Re: Adding NIS user accounts
>chown: unknown user id baw32
I think you must propagate your NIS maps the slaves with yppush. Though I don't know why this user can be found in ypcat passwd. These two seems inconsistent. Try "su baw32" on the slave and post the output.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 07:57 AM
тАО12-31-2009 07:57 AM
Re: Adding NIS user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 08:20 AM
тАО12-31-2009 08:20 AM
Re: Adding NIS user accounts
I ran the su baw32 on the slave NIS server, and the output is the following:
su baw32
su: Unknown id: baw32
The end of the /etc/passwd file, assuming the one in question is that on the slave, does not contain any of the 'traditional' + and other symbols.
It should be noted that the master NIS server is running HP-UX 11.00 while its slave counterpart is running HP-UX 11.11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 08:55 AM
тАО12-31-2009 08:55 AM
Re: Adding NIS user accounts
Then your slave won't know about that UID. Either it has to be in passwd(4) or found with NIS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2009 09:02 AM
тАО12-31-2009 09:02 AM
Re: Adding NIS user accounts
chown 225:users /user2/baw32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 10:07 AM
тАО01-04-2010 10:07 AM
Re: Adding NIS user accounts
I ran the command chown 225:users /user2/baw32, and that was successful. As a test, I logged in as the user baw32, and ran touch test command. The file was created in the user's home directory.
It was suggested also, the /usr/sbin/pwgrd binary be stopped and restarted. Once that was done, I ran the pwget -u baw32 command, and this time the slave nis server recognized the user account.
It appears the stopping and restarting of the pwgrd binary solved the problem. Thanks again for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 10:35 AM
тАО01-04-2010 10:35 AM
Re: Adding NIS user accounts
If you are happy with your answers, please read the following about how to assign points:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 11:09 AM
тАО01-04-2010 11:09 AM
Re: Adding NIS user accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-04-2010 11:26 AM
тАО01-04-2010 11:26 AM
Re: Adding NIS user accounts
It appears you have two IDs. You must use your original/author one:
http://forums.itrc.hp.com/service/forums/publicProfile.do?userId=BR710975&forumId=1