Operating System - HP-UX
1748038 Members
4704 Online
108757 Solutions
New Discussion юеВ

problem with changing password in hpux

 
bibith dathan
Advisor

problem with changing password in hpux

Hi
I am facing some problem with hpux server

Problem:-
When a normal user try to change password, system will ask old password two times.
________________________________________________________________________
server1:bdd.ext> passwd
Old password:
Changing password for bdd.ext
Old password:
New password:
Re-enter new password:
Passwd successfully changed
server1:bdd.ext>


Can any one tell why it is happeing.


Bibith Dathan
12 REPLIES 12
Sajjad Sahir
Honored Contributor

Re: problem with changing password in hpux

Dear Friend

to change the userpasswd
u have to use the command passwd username
other wise it will chnage root passwd.
#passwd username
if u are using

#passwd it will change root passwd.

thanks and regards

Sajjad
bibith dathan
Advisor

Re: problem with changing password in hpux

HI Sajjad

i know that !!!!. if i execute passwd as root login . it will change for root ... but when i am login as normal user and excute passwd it will change password for that user only . right ?


In above details i have given example for user bdd.ext .


Bibith Dathan
Ganesan R
Honored Contributor

Re: problem with changing password in hpux

Hi,

It's something new to me also. What is the OS version? Do you have installed shadow password or converted to trusted system?
Best wishes,

Ganesh.
Taifur
Respected Contributor

Re: problem with changing password in hpux

Hi bibith dathan

The command as follows

#passwd username
old password:
New Password:

Rgds//
Taifur
bibith dathan
Advisor

Re: problem with changing password in hpux

Hi

OS version :
HP-UX B.11.11 U 9000/800
system does not have shadow file and it is non-trusted system

Bibith Dathan
Taifur
Respected Contributor

Re: problem with changing password in hpux

Hi Bibith

It is not a major issue
#passwd username
old password:
New Password:

After changing password, try to login again
If u can login successfully, means problem solved.

Rgds//
Taifur
bibith dathan
Advisor

Re: problem with changing password in hpux

Hi Tifur

I think you have not understand the issue . let me give some details
When a user has login with his credentials and then if he want to change passwd why he need to go for ├в passwd username├в , he can go for ├в passwd├в only.
But I am sorry, In both case it will ask old password for two times. See below


Server1:bdd.ext> passwd bdd.ext
Old password:
Changing password for bdd.ext
Old password:
New password:
Re-enter new password:
Passwd successfully changed
Server1:bdd.ext>


Note :When i change passwd for a user as root login, system will ask old pass one time only .

Bibith Dathan
Vinoyee Madashery Poulo
Frequent Advisor

Re: problem with changing password in hpux

There is something wrong. As root user when you change the password for other users, it should not prompt for old password. Strange behaviour
Steven Schweda
Honored Contributor

Re: problem with changing password in hpux

When a command/program behaves in an
unexpected way, the first thing to check is
which program you are actually running.
Depending on your shell, something like one
of these may say something interesting:

type passwd
whence passwd
which passwd

You could have an unusual PATH, and you could
be running almost anything (named "passwd").

> Note :When i change passwd for a user as
> root login, system will ask old pass one
> time only .

And different users can have different values
for PATH, too.