UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old September 7th, 2004, 11:04 AM
spuddi spuddi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 spuddi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
user password

on HPUX
i create a user and give them a password (password1)

user logs in using password1
user changes their password to password2
user logs out

user logs in using password2
user trys to change password to password3 but it will only change if user uses password1 as the "old password"
user does the above and changes the password to password3

user logs in using password3
again user needs password1 as "old password" if they want to change password3 to password4

i can go in as admin and change the users password using password3 as "old password" but they always have to use password1

Question1
where is password1 being stored? (it can't be the /etc/passwd otherwise CDE login wouldn't work for the new passwords)

Question2
how to fix?

Reply With Quote
  #2  
Old September 7th, 2004, 07:19 PM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
no errors when user (not adm) changes pwd ?
r u using nis ?
check perms of /bin/passwd, should be 6555
if hpux is s5r4 passwd is in /etc/shadow

Reply With Quote
  #3  
Old September 8th, 2004, 05:14 AM
spuddi spuddi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 spuddi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
spuddi

error is "old password is incorrect"
r-sr-xr-x for /bin/passwd permissions
not using nis
not trusted system

?????

Reply With Quote
  #4  
Old September 8th, 2004, 06:58 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
wrong 2555: r-sr-xr-x for /bin/passwd
should be 6555: r-sr-sr-x for /bin/passwd
owned by root group sys

why did you NOT mentioned that error message ?

Reply With Quote
  #5  
Old September 8th, 2004, 10:03 AM
spuddi spuddi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 spuddi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the help guggach

unfortunately still no joy
all the users are in group dba is it worth
chgrp dba /bin/passwd ?

Reply With Quote
  #6  
Old September 8th, 2004, 10:34 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
chgrp: sure not
maybe i saw the probl:

only the 1.st 8 passwd chars are significant.
password1 becomes password
and
password2 becomes password
so you try to change: 'password' to 'password'
you see ?
manually reset a shorter and unique pwd for all users ...

Last edited by guggach : September 8th, 2004 at 10:37 AM. Reason: typo

Reply With Quote
  #7  
Old September 8th, 2004, 11:04 AM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
On HP-UX /usr/bin/passwd is 2555, not 6555. But 6555 should be harmless.

What version of HP-UX? Run "uname -a" to find out.

Have you converted it to a trusted system? If so, /tcb/files/auth/system/default will exist.

What does "grep passwd /etc/nsswitch.conf" return?

What does "grep passwd /etc/pam.conf" return?

Reply With Quote
  #8  
Old September 9th, 2004, 03:41 AM
spuddi spuddi is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 4 spuddi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
guggach,
sorry i was trying to simplyfy my explaination by using password1 ,2. 3 etc
the actual passwords I used were 7 digits/number combinations

perderabo,
HPUX B.11
not trusted
nsswitch.conf returns nothing for passwd
pam.conf returns the following:
passwd password required /usr/lib/security/libpam_unix.1

listen guys thanks for the help so far I think that this problem has been created because our HPUX is a customized development, so probably our developers have caused this problem.

no worries guys I got a work around (users can use their first password, or admins can change the password for the user)

cheers anyway

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > user password


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway