passwd: authentication information cannot be recovered : How to resolve ?

While trying to change user password on linux server i got the below error.

error : passwd: Authentication information cannot be recovered

# passwd mades
Changing password for user mades.
passwd: Authentication information cannot be recovered

I tried to change as my user login also but got the below error

mades> passwd mades
 passwd: Authentication token manipulation error

Then i found that in /etc/pam.d/system-auth there is a entry missing. I added the below entry then its got resolved.

"password    sufficient   /lib/security/$ISA/ remember=6

This above entry we need to add in /etc/pam.d/system-auth file. Normally the below 4 lines should be there in system-auth file.

password    sufficient md5 shadow nullok try_first_pass use_authtok remember=6
password    requisite     /lib/security/$ISA/ retry=3 minlen=10 dcredit=-1 try_first_pass
password    sufficient   /lib/security/$ISA/ remember=6
password    required

Change system time in HPUX: How to ?

How to change system time in HP UX?

we can change the system time using below commands. command
2.set_parms command

A.To set the date and time on HP-UX
date [-u] [mmddhhmm[[cc]yy]]
date -u 032912202008

mm – Month number [01-12].
dd – Day number in the month [01-31].
hh – Hour number (24-hour system) [00-23].
mm – Minute number [00-59].
cc – Century minus one [19-20].
yy – Last two digits of the year number [70-99, 00-37 (1970-1999, 2000-2037)]. If omitted, the current year is used.

#date -u 0329120503

EX : mar -29 , 05:03 AM in EST

Note : Date command will change the system time is EST time zone default.

B. Using SET_PARMS command

1.. set_parms : command

Usage: set_parms
   Where can be:
   or initial (for entire initial boot-time dialog sequence)

2. How to change using set_parm ?

root# set_parms date_time

This section enables you to set the system clock.

The current system time is Sat Mar 31 12:59:38 BST 2012

Is this correct?

Press [y] for yes or [n] for no, then press [Enter] n

You will be prompted for the date and time.  Please enter all values
numerically, for example January is 1.  The values in the parentheses
give the acceptable range of responses.

Please enter the last two digits of the year (00-99), then press [Enter] 12

Please enter the month (1-12), then press [Enter] 03

Please enter the date of the month (1-31), then press [Enter] 30

Please enter the hour (using 24 hour time) (0-23)
For example: For 10 in the morning enter 10, for 3 in the afternoon enter 15.
Then press [Enter] 12

Please enter the minute (0-59), then press [Enter] 00

You have entered: Mar 30 12:00:00 GMT0BST 2012.
This time will be used to reset the system clock.

Is this value correct?

Press [y] for yes or [n] for no, then press [Enter] y

The date and time have been set to: Fri Mar 30 12:00:00 BST 2012

Press [Enter] to continue...

3. Verify the time

root# date
Fri Mar 30 12:00:06 BST 2012

NTP - xntpd configuration in HPUX

xntpd server configuration

1. xntpd server (daemon) is used by HP-UX. Open the file /etc/rc.config.d/netdaemons:

# vi /etc/rc.config.d/netdaemons
Make sure following variables are defined and XNTPD is set to 1:
export XNTPD=1
export XNTPD_ARGS=
Save and close the file. Where,

    * NTPDATE_SERVER : space-separated list of timeserver / IPs - If server uses the radio clock / system time, leave the NTPDATE_SERVER blank.
    * XNTPD : set it to 1 to enable NTP
    * XNTPD_ARGS : set options, see man page

2.Make sure correct timezone is setup in /etc/TIMEZONE file (look for TZ variable):

# vi /etc/TIMEZONE
Save and close the file.

3.Open /etc/ntp.conf file:

#vi /etc/ntp.conf
Make sure server are defined:
server unix-box-ntp
server delhi-ntp
peer delhi-noc-ntp
driftfile /etc/ntp.drift
Close and save the file. Where,

    * server : ntp server used (poll) to obtain time
    * peer : a peer relationship with another ntp server
    * driftfile : track local clock time (drift of the local clock)

4. Start HP-UX ntp service:
# /sbin/init.d/xntpd start
# /sbin/init.d/xntpd stop <-- stop ntp service

5.Verify that everything is working fine:

# ntpq -p
Watch out log file /var/adm/syslog/syslog.log for errors:
# tail -f /var/adm/syslog/syslog.log
Make sure xntpd is running:
# ps -ef | grep xntpd
Blogger Tips and TricksLatest Tips And TricksBlogger Tricks