• Learning Map
  • Unix Quiz Center
  • Unix Professional Network
  • Just-Unix-No-Noise FB Group

unixadminschool.com

  • Home
  • Announcements
    • Feed
    • MISC
  • Beginners zone
    • Beginners Lessons
    • Career Guidance
  • Experts Zone
    • Cloud Computing
    • Configuration Solutions
    • Migrations
    • Network Design
    • Scripting
    • Server Security
    • SUN CLUSTERS
    • SUN LDOMS
    • Tools & Applications
    • Veritas Cluster Services ( VCS ) Learning
  • Intermediate Zone
    • Linux Learning
      • Linux Booting
      • Linux Disk Management
      • Linux LVM
      • Linux Networking
      • Linux Performance
      • Linux Troubleshooting
      • Linux YUM/RPM
      • Performance Analysis
      • Redhat Linux Kernel
      • RHEL 6
        • RHEL LDAP
        • Rhel6 Storage
      • Web Servers
    • Solaris Admin
      • Blog for Unix Admin
        • Storage Administration – SAN
      • Oracle Hardware
      • Reference Docs
      • Solaris 10 Zones & LDOMs
      • Solaris 11
      • Solaris Access Control
      • Solaris Best Practices
      • Solaris Booting
      • Solaris Disk Management
      • Solaris DNS
      • Solaris How-to
      • Solaris Installation
      • Solaris Kernel
      • Solaris Networking
      • Solaris NFS
      • Solaris NIS
      • Solaris Packages & Patching
      • Solaris Performance
      • Solaris Tips
      • Solaris Troubleshooting
      • Solaris User Authentication
      • solaris X86
      • Solaris ZFS and Boot Environment
      • Storage Configurations
      • SUN Hardware
      • Troubleshooting Flow charts
    • Veritas Admin
      • Veritas Netbackup
      • VxVM Learning
      • VxVM Troubleshooting
  • QUIZ Center
  • Vlabs

Subscribe

Solaris Troubleshooting NIS: add a user for NIS maps when passwd file is not in the /etc directory

Below procedure can be used to add a new NIS user when the passwd file is not in the /etc directory

Steps to Follow

The example below demonstrates how to add a user for NIS maps when the passwd file is not in the /etc directory.

The NIS directory is /etc/nisdir, where all the NIS maps reside.

Create a user in the /etc/passwd file. In this example, the new user is Johnl

Step 1.

Edit /etc/passwd to Add entry for the user

# vi /etc/passwd

Johnl:x:107:14:John l:/export/home/johnl:/bin/csh

Assign a password to the new user.

passwd johnl

Step 2:

Now run below command to create an entry in the shadow file

# pwconv

cat /etc/shadow file to see this entry in there.

johnl:dhXRywfkSELcE:10091::::::

Step 3:

Just copy the new entries to the /etc/nisdir/passwd file for passwd entry, and /etc/nisdir/shadow for shadow entry. To update the passwd map and push it to the slaves.

# make passwd

**NOTE**If you do not want this new user to be a local user, delete the entries in /etc/passwd and /etc/shadow.

Ramdev
8 Comments
Tagged with: [ add, nis, nis maps, NIS user, Solaris Troubleshooting ]

Solaris Troubleshooting NIS : Configure Master, Slave and Client

Below procedure gives the steps to configure NIS Master Server, Slave Server and Client services in both solaris 9 and Solaris 10

Configuring NIS Master Server

You must login as root.

1.  Define the NIS domainname.

# domainname example-domain –> “example-domain” is the domain name.  It could be any name you like.

2.  Populate the /etc/defaultdomain file with the domainname.

# domainname > /etc/defaultdomain

3.  Edit the /etc/hosts file to ensure that the NIS master and all NIS slave servers have been defined and that a fully qualified name exists for this server.

4.  Optionally, create an alternate directory and copy the source files there.

#  mkdir  /var/yp/src

# cd /etc

# cp auto_home auto_master bootparams  ethers group hosts  netgroup netmasks networks passwd  protocols  publickey rpc services shadow timezone  user_attr  /var/yp/src Full Story

Ramdev
% Comments

Solaris Troubleshooting NIS : Removing a NIS slave server (or convert it to a NIS client)

Changing an NIS slave server to a client is a three-part process:

1. Edit the ypservers map on your NIS master, removing the defunct slave from the list of servers.

2. on the NIS slave, remove NIS configuration

3. Convert the NIS slave as NIS client

**Note: Step 3 is optional and should be used only if we want turn the NIS slave into NIS client.

Step 1:

Removing NIS Slave from NIS Master’s ypservers map. When you initialize your NIS master, you give it a list of NIS slaves. If you later add additional NIS slaves, or remove one of these original NIS slaves, you must update the NIS list of servers. This is done entirely from the NIS master server. First, you must output the list of NIS servers:

nis_master# cd /var/yp/`domainname`

nis_master# makedbm -u ypservers > /tmp/ypservers

nis_master# vi /tmp/ypservers    and remove  slave from the list.

nis_master# makedbm /tmp/ypservers ypservers

verify removal via:

nis_master# ypcat -k ypservers

The slave server should no longer show up on this list. It is not necessary to reboot the master.  This change will take effect without stopping or restarting any processes.

 

 

Full Story

Ramdev
Comment
Tagged with: [ convert, master, nis, slave, Solaris Admin, Solaris Troubleshooting ]

Solaris Troubleshooting NIS : Adding a NIS slave server to existing NIS master’s maps

To add a slave server to an existing NIS domain do the following:

1. become root on master

2. cd /var/yp/`domainname`

3. /usr/etc/yp/makedbm -u ypservers > /tmp/tempfile

4. vi /tmp/tempfile
Add the new slave servers name on a new line twice in a row on the same line, i.e., slave1 slave1.

5. /usr/etc/yp/makedbm /tmp/tempfile  ypservers

6. Go to slave and run ypinit -s.

Ramdev
Comment
Tagged with: [ Adding, nis, nis master, NIS slave, solaris learning, Solaris Troubleshooting ]

Solaris Troubleshooting NIS: How to completely remove NIS from all machines

By following below steps we can NIS from client, Slave Server and Master Servers


  Full Story

Ramdev
2 Comments

NIS and Netgroups : Restricting logins on a machine using compat mode and netgroups

There’s no local files implementation of netgroups.   Netgroups are used to group machines or users together in order to make certain sysadmin tasks easier.

A standard netgroup triple reads as follows: (hostname, username, domainname) Full Story

Ramdev
Comment
Pages1 2

  • About Author : My name is Ramkumar Ramadevu ( Ramdev ). I have started writing about enterprise unix system administration since 2009 just for my own knowledge reference, and then later I have made this site available for everyone, for better purpose. ... read more

  • Advertise Here Your Video Ad Here
  • Recent Comments

    • Ramdev commented :: Hi alok, there is no user authentication setup for this post. you can ...
    • Alok Kumar commented :: Hi  Dear Ramdev, your guide is awesome. I hav recently subscribed...
    • Erlis commented :: Nice article. :)...
    • Ramdev commented :: Rahul, welcome to unixadminschool.Thanks for the message....
    • Rahul commented :: Awesome Ram, i came to know about this Blog 2 days and go through a...
    • Ramdev commented :: Hi Prajwala, I am glad that you like it :)...
    • Ramdev commented :: Pavan, the below command mentioned in this doc to show how much pemlen...
    • Ramdev commented :: pleae try      --             share -F nfs -o rw=oracle:root /filesyst...
    • Ramdev commented :: Hi Jack, the cfgadm you have to do it anyway to  make sure the disk i...
    • Maniswara Pavan commented :: Nice Post .........
  • Latest Posts

    • Virtual Lab : Get Your hands dirty with grep & RegEx
    • Quiz – Redhat Linux Intermediate Skills
    • Solaris Quiz – Managing Filesystems and Disk Devices
    • Test Your Understanding about Linux Fundamentals
    • Solaris Quiz – System Startup and Shutdown
    • Solaris Quiz – Software Management
    • RHEL 6 – ISCSI Administration Series – ISCSI Lun resize
    • RHEL 6 – ISCSI Administration Series – Configuring ISCSI Server and Client
    • SAN Storage Migration – Solaris with VxVM
    • RHEL 6.3 – LDAP Series – Part 4 : Troubleshooting
    • RHEL 6.3 – LDAP Series – Part 3 : LDAP Configuration With Encrypted Communication using TLS/SSL
    • RHEL 6.3 – LDAP Series – Part 2 : Configuration of Certification Authority for LDAP encryption.
    • RHEL 6.3 – LDAP Series – Part 1 : Implementation of LDAP Authentication
    • [ Updated with Analysis ] – Finding the Linux Performance Bottleneck !!!
    • VxVM Troubleshooting – Increasing the Size of Veritas Disk Private Region
    • Virtualization for Unix Administrators
    • VCS Learning – I/O Fencing In action [ Video ]
    • VCS Learning : Learn about Cluster Hearbeats
    • Happy New Year 2013, Thank You. >
    • Storage Operations – VxVM vs RHEL LVM2
    • Veritas Netbackup : Unable to detect Robot from master server after Veritas Netbackup upgrade to 7.1.0.4.
    • A tool that changes the way of system administration – PUPPET ( from puppetlabs)
    • Redhat Enterprise Linux : Yum Quick Reference
    • Redhat Enterprise Linux – Network Bonding – Quick Reference ( RHEL5 / RHEL6)
    • Redhat Enterprise Linux Networking Troubleshooting – Quick Reference
    • RedHat Linux Grub Loader – FAQ and Quick Reference
    • Redhat Linux LVM – FAQ & Quick Reference
    • RedHat Linux Kernel – FAQ and Quick Reference
    • Solaris host level SAN migration from Clariion to VMAX – Hands on Lab
    • Linux Samba Server integration with Windows Active Directory – Part 2
  • Site Members

    • Log in
Copyright © 2009 unixadminschool.com. All rights reserved.