- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NIS configuration
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
11-23-2005 02:05 AM
11-23-2005 02:05 AM
Thanks
Vipin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 02:07 AM
11-23-2005 02:07 AM
Re: NIS configuration
ypwhich
ypmake
Thats a start.
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
11-23-2005 02:07 AM
11-23-2005 02:07 AM
Re: NIS configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 02:12 AM
11-23-2005 02:12 AM
SolutionCheck the entries in the /etc/nsswitch.conf file.
#cat /etc/nsswitch.conf
passwd: files nis
group: files nis
hosts: nis [NOTFOUND=return] files
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: files nis
The output should be similar to this.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 02:53 AM
11-23-2005 02:53 AM
Re: NIS configuration
The ypwhich command will tell you what NIS server (master or slave) the client is binding to.
The ypcat command will list the accounts in NIS. This could be 'ypcat yppasswd' or 'ypcat passwd' or something else. You will will to verify this for your environment since this name can be specified.
If you have a server that is not in NIS (as validated by the ypwhich) then check the local passwd file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 03:40 AM
11-23-2005 03:40 AM
Re: NIS configuration
Hi Vipin ,
Here is a good doc for NIS also having interoperability with aix.
http://www.freelab.net/unix/hp-ux/chap11_nis.html
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 04:19 AM
11-23-2005 04:19 AM
Re: NIS configuration
stock.companyname.com
root@server:[/root]# cd
root@server:[/root]# cat /etc/nsswitch.conf
#
# /etc/nsswitch.conf
passwd: files [NOTFOUND=continue] nis
group: files [NOTFOUND=continue] nis
hosts: files [NOTFOUND=continue] nis [NOTFOUND=continue UNAVAIL=continue] dns
networks: files [NOTFOUND=continue] nis
protocols: files [NOTFOUND=continue] nis
rpc: files [NOTFOUND=continue] nis
publickey: files [NOTFOUND=continue] nis
netgroup: nis [NOTFOUND=continue] files
automount: nis [NOTFOUND=continue] files
aliases: nis [NOTFOUND=continue] files
services: files [NOTFOUND=continue] nis
root@server:[/root]# ypcat passwd | more | grep vipin
vipin:XI8op1IoKNZXc,B.CR:18058:106:john gins:/ahome/vipin:/usr/bin/ksh
Thanks for your support.
how will i create the new users in the same group?
How will i select their home directory?
how will i define their group?
Please suggest
vipin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 04:35 AM
11-23-2005 04:35 AM
Re: NIS configuration
A. I don't know how you would do it but I would give them a common group ID.
Q. How will i select their home directory?
A. I don't know how you would do it. It is common in an NIS environment to automount home directories so that the user has the same home directory regardless of the machine he is currently working on.
Q. how will i define their group?
A. I don't know how you will define their group. I would make an entry in the group map and then when you create the passwd entry give them this group ID.
Once again, you don't seem too interested in learning on your own. Get yourself a copy of
O'reilly's "Managing NFS and NIS"; it's an excellent reference and will deal with all of your questions.
http://www.oreilly.com/catalog/nfs2/index.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 04:41 AM
11-23-2005 04:41 AM
Re: NIS configuration
Some people build a standard user template, put it in /etc/skel and that keeps all users in the same group.
In an NIS environment users should be created on the NIS Master. ypmake pushes them to the NIS slaves.
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
11-23-2005 04:52 AM
11-23-2005 04:52 AM
Re: NIS configuration
Does your environment modify the NIS passwd file directly? Or do you use the adduser utility?
This is one example.
Either method can work but this depends on the environment.
SAM would be the 1st place to look.