- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS server configuration
Operating System - HP-UX
1753504
Members
4476
Online
108794
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
Discussions
Discussions
Forums
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
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
тАО03-17-2009 08:39 PM
тАО03-17-2009 08:39 PM
NIS server configuration
Hi,
Can any one provide me the NIS server configuration details. I planned to migrate old NIS server to new one.
I am new to NIS, if possible request you to provide a notes.
Can any one provide me the NIS server configuration details. I planned to migrate old NIS server to new one.
I am new to NIS, if possible request you to provide a notes.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 09:21 PM
тАО03-17-2009 09:21 PM
Re: NIS server configuration
Hi,
Please have a look on these links
http://www.docs.hp.com/en/B1031-90043/ch04s03.html
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1237353433771+28353475&threadId=985036
Regards!
Please have a look on these links
http://www.docs.hp.com/en/B1031-90043/ch04s03.html
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1237353433771+28353475&threadId=985036
Regards!
Man's mind, once stretched by a new idea, never regains its original dimensions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2009 10:30 PM
тАО03-17-2009 10:30 PM
Re: NIS server configuration
2.2 NIS Master Server Configuration
2.2.1 Create a master passwd file
1. Copy the /etc/passwd file from each host in your NIS domain to the /etc directory on the host that will be the master server. Name each copy /etc/passwd.hostname, where hostname is the name of the host it came from
2. Concatenate all the passwd files together, including the master server├в s passwd file, into a temporary passwd file, as follows:
cd /etc
cat passwd passwd.hostname1 passwd.hostname2... > passwd.temp
3. Issue the following command to sort the temporary passwd file by user name:
sort -o /etc/passwd.temp -t: -k1,1 /etc/passwd.temp
4. Examine /etc/passwd.temp for duplicate user names. If you find multiple entries for the same user, edit the file to remove redundant ones. Make sure each user in your network has a unique user name.
5. Issue the following command to sort the temporary passwd file by user ID:
sort -o /etc/passwd.temp -t: -k3n,3 /etc/passwd.temp
6. Examine /etc/passwd.temp for duplicate user IDs. If you find multiple entries with the same user ID, edit the file to change the user IDs so that no two users have the same user ID.
7. Move /etc/passwd.temp (the sorted, edited file) to /etc/passwd. This file will be used to generate the passwd map for your NIS domain.
8. Remove all the /etc/passwd.hostname files from the master server.
2.2.2 Create a master group file
Repeat the same procedure for master group file as done for master passwd file.
2.2.3 Create a master hosts file
Repeat the same procedure for master hosts file as done for master passwd file.
2.2.4 Enable the NIS Master Server capability
1. Log in as root to the host that will be the master server.
2. On the host that will be the master server, ensure that the $PATH environment variable includes the following directory paths:
a. /var/yp
b. /usr/lib/netsvc/yp
c. /usr/ccs/bin
3. Issue the following command to set the NIS domain name:
/usr/bin/domainname <.....>
4. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the domain name:
NIS_DOMAIN=<......>
5. In the /etc/rc.config.d/namesvrs file, set the NIS_MASTER_SERVER and NIS_CLIENT variables to 1, as follows:
NIS_MASTER_SERVER=1
NIS_CLIENT=1
6. Issue the following command to create the NIS maps for the domain:
/usr/sbin/ypinit -m
The ypinit script will prompt you for the names of your slave servers. Enter the names of your slave servers in response to the prompt.
7. Issue the following commands to run the NIS startup scripts:
/sbin/init.d/nis.server start
/sbin/init.d/nis.client start
2.2.5 Verify the NIS Master Server configuration
Logon to the NIS master server and execute the following command
ypwhich -m
2.2.1 Create a master passwd file
1. Copy the /etc/passwd file from each host in your NIS domain to the /etc directory on the host that will be the master server. Name each copy /etc/passwd.hostname, where hostname is the name of the host it came from
2. Concatenate all the passwd files together, including the master server├в s passwd file, into a temporary passwd file, as follows:
cd /etc
cat passwd passwd.hostname1 passwd.hostname2... > passwd.temp
3. Issue the following command to sort the temporary passwd file by user name:
sort -o /etc/passwd.temp -t: -k1,1 /etc/passwd.temp
4. Examine /etc/passwd.temp for duplicate user names. If you find multiple entries for the same user, edit the file to remove redundant ones. Make sure each user in your network has a unique user name.
5. Issue the following command to sort the temporary passwd file by user ID:
sort -o /etc/passwd.temp -t: -k3n,3 /etc/passwd.temp
6. Examine /etc/passwd.temp for duplicate user IDs. If you find multiple entries with the same user ID, edit the file to change the user IDs so that no two users have the same user ID.
7. Move /etc/passwd.temp (the sorted, edited file) to /etc/passwd. This file will be used to generate the passwd map for your NIS domain.
8. Remove all the /etc/passwd.hostname files from the master server.
2.2.2 Create a master group file
Repeat the same procedure for master group file as done for master passwd file.
2.2.3 Create a master hosts file
Repeat the same procedure for master hosts file as done for master passwd file.
2.2.4 Enable the NIS Master Server capability
1. Log in as root to the host that will be the master server.
2. On the host that will be the master server, ensure that the $PATH environment variable includes the following directory paths:
a. /var/yp
b. /usr/lib/netsvc/yp
c. /usr/ccs/bin
3. Issue the following command to set the NIS domain name:
/usr/bin/domainname <.....>
4. In the /etc/rc.config.d/namesvrs file, set the NIS_DOMAIN variable to the domain name:
NIS_DOMAIN=<......>
5. In the /etc/rc.config.d/namesvrs file, set the NIS_MASTER_SERVER and NIS_CLIENT variables to 1, as follows:
NIS_MASTER_SERVER=1
NIS_CLIENT=1
6. Issue the following command to create the NIS maps for the domain:
/usr/sbin/ypinit -m
The ypinit script will prompt you for the names of your slave servers. Enter the names of your slave servers in response to the prompt.
7. Issue the following commands to run the NIS startup scripts:
/sbin/init.d/nis.server start
/sbin/init.d/nis.client start
2.2.5 Verify the NIS Master Server configuration
Logon to the NIS master server and execute the following command
ypwhich -m
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP