UnixPedia : HPUX / LINUX / SOLARIS: HPUX: Root Password issue.

Wednesday, April 30, 2014

HPUX: Root Password issue.



Root Password issue.
Overview
Root Passwd : After repeat of reseting the password and still Login prompt is not accepting the root passwd.
Procedures
Root Passwd : After repeat of reseting the password and still Login prompt is not accepting the root passwd.

[root@Mickey:/sbin/init.d]#
#-> /usr/lbin/getprpw root
user password file not found: root
[root@Mickey:/sbin/init.d]#

Root login is not able to accept the root password above error is encounter.


[root@Mickey:/tcb/files/auth/r]#
#-> /usr/lbin/getprpw root
user password file not found: root

It was later found that nsswitch.conf file which refer the Database for user ,group, host  etc has been change. Some pplication replace it with formate which is used in Linux System.

  /etc/nsswitch.conf

 DESCRIPTION
      The operating system uses a number of "databases" of information about
      hosts, users (passwd), groups and so forth.  Data for these can come
      from a variety of sources:  host-names and -addresses, for example,
      may be found in /etc/hosts, NIS, LDAP, or DNS.  One or more sources
      may be used for each database; the sources and their lookup order are
      specified in the /etc/nsswitch.conf file.


[root@Mickey:/tcb/files/auth/r]#
#-> cat /etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
#       compat                  Use Libc5 compatibility setup
#       nisplus                 Use NIS+ (NIS version 3)
#       nis                     Use NIS (NIS version 2), also called YP
#       dns                     Use DNS (Domain Name Service) for IPv4 only
#       dns6                    Use DNS for IPv4 and IPv6
#       files                   Use the local files
#       db                      Use the /var/db databases
#       [NOTFOUND=return]       Stop searching if not found so far
#
# For more information, please read the nsswitch.conf.5 manual page.
#

# passwd: files nis
# shadow: files nis
# group:  files nis

passwd: centrifydc  compat
group: centrifydc   compat

hosts:      files dns dns6
networks:       files

services:       files
protocols:      files
rpc:            files
ethers:         files
netmasks:       files
netgroup:       files
publickey:      files

bootparams:     files
automount:      files
aliases:        files

[root@Mickey:/tcb/files/auth/r]#
.

RESOLUTION.

Format of nsswitch.conf file has been correct as per HPUX System. Then root password issue has been resolved.
Keywords.
Passwd, getprpw

No comments:

Post a Comment