Setting up NIS


 
Thread Tools Search this Thread
Operating Systems Solaris Setting up NIS
# 1  
Old 09-29-2003
Setting up NIS

I'm some what new to Unix and I recently have been thrown into a system administration role. I created this thread because I I wish to setup NIS in my lab and I thought this could be benificial to me and many others.

I am followig the Sun System Administation Guide: Naming and Directory Services. I have two freshly installed sun blade 100s with Solaris 9 and the patch cluster on an isolated network. My goal is to make one a master server and the other a client. I will post my progress regularly and also ask questions to the pros that have been doing this for so long.

Thanks,
Steve
# 2  
Old 09-29-2003
ok here we go...

I started by setting the domain name on my server to test.com and creating the /etc/defaultdomain file. Then I created the /etc/nodename file containing the machine name unixnis.

I copied the folling files to a new directory call /nisfiles:
auto_master
auto_home
bootparams (created blank file)
ethers (created blank file)
group
hosts (added ip of client to be)
ipnodes
netgroup
netmask
networks
protocols
rpc
services
user_attr

These are the default file unless otherwise specified.

Next i copied passwd and shadow to /passfiles and then removed the line for root.

I then opened the /var/yp/makefile and changed the DIR value to /nisfiles and the PWDIR value to /passfiles.
# 3  
Old 09-29-2003
I guess it time to attemp to build the nis maps. I run:
/usr/sbin/ypinit -m

- enter the name of the master
-say yes to stop on errors

errors coming up in next post
# 4  
Old 09-29-2003
Ok here are the errors i get

Sep 29 12:12:02 unixnis sendmail[4291]: My unqualified host name (unixnis) unknown; sleeping for retry
Sep 29 12:18:02 unixnis sendmail [4291]: unable to qualify my own domain (unixnis) -- using short name
WARNING: local host name (unixnis) is not qualified; fix $j in config file
/var/yp/test.commail.aliases: 13 aliases, longest 16 bytes, 162 bytes total
/usr/lib/netsvc/yp/mkalias /var/yp/'domainname'/netmask.byaddr
updated aliases
make: WARNING: don't knoe how to make target '/nisfiles/publickey'
Current working dircectory /var/yp
Updated netid
/usr/sbin/makedbm /nisfiles/netmask /var/yp/'domainname'/netmask.byaddr
updated netmask
Couldnt find /nisfiles/timezone
Updated auto.master
Updated auto.home
Updated auth_attr
Updated exec_attr
Updated prof_attr
Updated user_attr
Updated audit_user
make: Warning: Target 'all' not remade because of errors
Current working directory /var/yp
*** Error Code 1
make: Fatal Error: comand failed for target 'k'
Error running makefile

Can anybod comment and give me some solutions to fixing these problems?

Thanks
# 5  
Old 09-29-2003
Ok to get this to work I copied over the /etc/publickey file to /nisfiles and created a timezone file and copied to /nisfiles.

Once I did this i ran the ypinit anaing and it worked without a error
# 6  
Old 09-29-2003
I joined the client system using the ypinit -c command. Before doing this i set the domainname to test.com and replaced the /etc/nsswitch.conf with nsswitch.nis.

After rebooting i tried to login and go a message that my home directory was unreachable and to login in fail safe mode.

To fix this i copied auto_home to the /nisfiles and updated the auto.home map.

This allowed me to login but then i got another error about the DT Messenging service could not be started.

To fix this I opened the /etc/dfs/dfstab on the server and added an entry for the /export/home/<username> that i was logging in with on the client.

This seemed to fix it...
# 7  
Old 09-30-2003
Is there easier ways to administer NIS?

To create a user I was using useradd then copying that users line in /etc/passwd to my /passfiles/passwd. I also did this with the shadow. Then I copied the auto_home to /nisfiles. I updated the auto.nome map and the passwd map after that. Then in order for the user to access his home directory I had to open /etc/dfs/dfstab and add an entry for his home directory. This seems exstremely tedious and long just to add a user. Are there easier ways to do this?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

2. Linux

NIS

Hi All, I have configured NIS server in linux rhel5 and made one client member to that server. nfs share created for users home directory i have created one nis user, user not able to change the passwd of his login. getting below mentioned error " yppasswdd not running on NIS master... (1 Reply)
Discussion started by: vinay_ks
1 Replies

3. Solaris

Problem while setting NIS master on Solaris 10

Hi All, I get below error while running cd /var/yp /usr/sbin/ypinit -m Error Code - 1 updated netmasks make : warning : target all not remade because of errors current working dir /var/yp *** error code 1 *** make : fatal error : command failed for target 'k' error running... (4 Replies)
Discussion started by: naw_deepak
4 Replies

4. Shell Programming and Scripting

Validating that the NIS and NIS+ services are disabled

I'm creating a scrip for auditing our AIX box's to ensure that they are built according to our system standards. I'm not sure on the logic for checking to see if the NIS and NIS+ services are disabled. any idea's? (2 Replies)
Discussion started by: sport
2 Replies

5. Solaris

How to configure a NIS client bound to the NIS server in another subnet?

Hi, all. I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client, 1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01 2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies

6. UNIX for Advanced & Expert Users

User Quota setting with NIS and NAS

Hi Guru, Need some advice on the PROs and CONs between setting up user quota with NAS and Nis. Thanks Regards. YLL (1 Reply)
Discussion started by: yll
1 Replies

7. UNIX for Advanced & Expert Users

SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working

We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave. We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation. However, no matter what i do, the SUSE machines will not talk to the NIS Servers. If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies

8. UNIX for Dummies Questions & Answers

NIS map mail.aliases specified, but NIS not running

Hi all, I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following, "NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies

9. IP Networking

differences nis nis+

Hello together. Is there someone who is able to explain me the differences between NIS and NIS+. thanks in advance joerg (2 Replies)
Discussion started by: joerg
2 Replies

10. UNIX for Advanced & Expert Users

Solaris NIS+ and RedHat NIS+

Hello all, I'm not sure if this is the right forum, but I would like to know if Redhat running NIS ( not NIS +) would have conflict with Solaris running NIS+. Currently I am running NIS+ on Solaris but will be adding RedHat to the network. I seem to be unable to find and information regarding... (2 Replies)
Discussion started by: larry
2 Replies
Login or Register to Ask a Question