Re: can't change password with passwd comand

2007-11-21 Thread Jumping Mouse
Ok, Ok I get the point.   I agree that posting line 24 will not help, any user
except root gives the same issues.  And as a last and final attempt I will
check the end of the file for any spaces as Clint suggested.

finally:

What if I try a master.passwd file form a working machine of same Build.  If
that file does work then we can conclude it is systemic. I am off for
thanksgiving over here in the US.. so it may be a while before I respond with
my results.

Thanks everyone, so far.
  - Original Message -
  From: Nick Holland
  To: misc
  Sent: Wednesday, November 21, 2007 7:18 AM
  Subject: Re: can't change password with passwd comand


  Cristiano Deana wrote:
   On Nov 21, 2007 10:48 AM, Kafriki [EMAIL PROTECTED] wrote:
  
   ok here is a user with full details: (this is in plain text, hope it's
more
   readable)
  
  
cat.cat:$2a$07$aYgatzjxAULHQmmZkjmvteGEaO8Ie8geMoUfhl7AAzKi.WeRhuoA6:10006:20
::0:0:Pussy
   Cat:/smbhome/student_homedirs/cat.cat:/bin/ksh
  
   Don't paste a user but line 24's user
  

  and 23 and 25...

  Better yet, end the blooming guessing game, post the thing somewhere.
  Yes, that means all your PWs are trash, but if you are inheriting a
  machine, you need to change all the PWs anyway...and probably once
  again once you have properly secured it.

  Or manually edit down the file to the absolute minimum that demonstrates
  the problem.

  Or move the file to another OpenBSD machine (they are easy to build)
  and verify that the problem is IN that file, and not a systemic problem,
  which is not out of the question, considering the other apparent damage
  to it.  Then do what we will do and chew through the file and figure
  out why it isn't working.

  Nick.



Re: can't change password with passwd comand

2007-11-20 Thread Jumping Mouse
Hi Clint and others,

I tried:

 # rm spwd* pwd* passwd* ptmp # pwd_mkdb /etc/master.passwd

then
#passwd username

but I am still getting: (for all users)

pwd_mkdb: corrupted entrypwd_mkdb: at line #24pwd_mkdb: /etc/ptmp:
Inappropriate file type or formatpasswd: /etc/master.passwd: unchanged

I have searched the faqs but have not been able to find a good solution to
this issue.  Does anyone have any thoughts?



 Date: Mon, 19 Nov 2007 19:33:06 -0700 From: [EMAIL PROTECTED] To:
[EMAIL PROTECTED] CC: misc@openbsd.org Subject: Re: can't change password
with passwd comand  Jumping Mouse wrote:  When I try to change a user
password I get an error.  I do this:   # passwd username  enter a new
password and get: pwd_mkdb: corrupted entrypwd_mkdb: at line  #24pwd_mkdb:
/etc/ptmp: Innapropriate file type or formatpasswd:  etc/master.passwd
unchanged   how can I fix this?# cd /etc # cp -p spwd.db pwd.db
passwd /root/ # backup # rm spwd* pwd* passwd* ptmp # pwd_mkdb
/etc/master.passwd # passwd username # try again
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: can't change password with passwd comand

2007-11-20 Thread Jumping Mouse
Hi Clint,  Yes I am the one.   as for changing the password this seems to
happen to any user except for the root acount, I am able to use  passwd to
change the root account password.  Here is line 24: (I removed the password
and real usernmame) username::1000:0::0:0:username:/home/username:/bin/ksh I
don't know if this matters but there is no ptmp file in the /etc directory
(no was there before I followed your earlier instructions) Date: Tue, 20 Nov
2007 15:59:52 -0700 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC:
misc@openbsd.org Subject: Re: can't change password with passwd comand 
Jumping Mouse wrote:  Hi Clint and others,   I tried: # rm
spwd* pwd* passwd* ptmp # pwd_mkdb /etc/master.passwd then 
#passwd username   but I am still getting: (for all users)   pwd_mkdb:
corrupted entrypwd_mkdb: at line #24pwd_mkdb: /etc/ptmp:  Inappropriate file
type or formatpasswd: /etc/master.passwd: unchanged   I have searched the
faqs but have not been able to find a good solution to  this issue. Does
anyone have any thoughts?Does line #24 have a subtle error? Check the
format against passwd(5).  BTW, are you the guy that inherited an OpenBSD
system without a root  account?
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: can't change password with passwd comand

2007-11-20 Thread Jumping Mouse
One more follow up:

I added a new user.
then tried to change the users password with the passwd command and I get the
same results:

pwd_mkdb: corrupted entrypwd_mkdb: at line #25pwd_mkdb: /etc/ptmp:
Inappropriate file type or formatpasswd: /etc/master.passwd: unchanged

 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; misc@openbsd.org
Subject: Re: can't change password with passwd comand Date: Wed, 21 Nov 2007
01:13:56 +0100  Hi Clint, Yes I am the one. as for changing the password
this seems to happen to any user except for the root acount, I am able to use
passwd to change the root account password. Here is line 24: (I removed the
password and real usernmame)
username::1000:0::0:0:username:/home/username:/bin/ksh I don't know if this
matters but there is no ptmp file in the /etc directory (no was there before
I followed your earlier instructions) Date: Tue, 20 Nov 2007 15:59:52 -0700
From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: misc@openbsd.org
Subject: Re: can't change password with passwd comand  Jumping Mouse
wrote:  Hi Clint and others,   I tried: # rm spwd* pwd*
passwd* ptmp # pwd_mkdb /etc/master.passwd then  #passwd
username   but I am still getting: (for all users)   pwd_mkdb:
corrupted entrypwd_mkdb: at line #24pwd_mkdb: /etc/ptmp:  Inappropriate
file type or formatpasswd: /etc/master.passwd: unchanged   I have
searched the faqs but have not been able to find a good solution to  this
issue. Does anyone have any thoughts?Does line #24 have a subtle
error? Check the format against passwd(5).  BTW, are you the guy that
inherited an OpenBSD system without a root  account?
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



lost root account

2007-11-19 Thread Jumping Mouse
Hi there,  I have inherited an openBSD machine with no root account.  When I
boot up in single user mode   boot -s and do a   cat /etc/master.passwd | root
the only thing I get is:  daemon:*:1:1::0:0:The devil
himself:/root:/sbin/nologin I can't seem to make changes to the master.passwd
account by using vipw  in single usermode.   I get a message that the file is
locked or busy.  Can anyone help in what I can do next?  How can I add the
root account back to the master.passwd file.  thanks.

Express yourself instantly with MSN Messenger! MSN Messenger
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: lost root account

2007-11-19 Thread Jumping Mouse
Hi Marcus,

I thought it was enough to add the root account through vipw.  that this edits
the master.passwd  file and would automatically update everything else?
how would I use pwd_mkdb, i don't want to delete any other accounts from the
master.passwd file.

thanks





 Date: Mon, 19 Nov 2007 17:41:01 -0200 From: [EMAIL PROTECTED] To:
[EMAIL PROTECTED]; misc@openbsd.org Subject: Re: lost root account  Boot
your machine in single user mode (boot -s) and use plain vi and pwd_mkdb soon
after that.  There's no need to use vipw when running in boot -s.  On Nov
19, 2007 5:18 PM, Jumping Mouse [EMAIL PROTECTED] wrote:  Hi there, I
have inherited an openBSD machine with no root account. When I  boot up in
single user mode boot -s and do a cat /etc/master.passwd | root  the only
thing I get is: daemon:*:1:1::0:0:The devil  himself:/root:/sbin/nologin I
can't seem to make changes to the master.passwd  account by using vipw in
single usermode. I get a message that the file is  locked or busy. Can
anyone help in what I can do next? How can I add the  root account back to
the master.passwd file. thanks.   Express yourself instantly with MSN
Messenger! MSN Messenger 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/  
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: lost root account

2007-11-19 Thread Jumping Mouse
thanks Juan,  faq8.1  shows me how to reset my root passord but i could not
find anything on recreating the root account.
Perhaps I am missing something?



 Date: Mon, 19 Nov 2007 14:36:18 -0500 From: [EMAIL PROTECTED] Subject: Re:
lost root account To: [EMAIL PROTECTED]; misc@openbsd.org   --- Jumping
Mouse [EMAIL PROTECTED] wrote:   Hi there, I have inherited an openBSD
machine with no root account.   When I  boot up in single user mode boot
-s and do a cat  /etc/master.passwd | root  the only thing I get is:
daemon:*:1:1::0:0:The devil  himself:/root:/sbin/nologin I can't seem to
make changes to the  master.passwd  account by using vipw in single
usermode. I get a message that the  file is  locked or busy. Can anyone
help in what I can do next? How can I  add the  root account back to the
master.passwd file. thanks.   There is FAQ 8.1 on that.  // juan   Get
a sneak peak at messages with a handy reading pane with All new Yahoo! Mail:
http://mail.yahoo.ca
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



Re: lost root account

2007-11-19 Thread Jumping Mouse
Ok the issue was solved!

mount -s -uw /

vipw

I typed the missing root account line back in and saved the file and can now
log back in as root.
this then invoked pwd_mkdb to do all the rest.

thanks everyone.

only issue now is that if I try to change another users account password I get
the following:

enter:   passwd  username
enter:  new password

get:

pwd_mkdb:  corrupted entry
pwd_mkdb: at line #24
pwd_mkdb: /etc/ptmp: Innapropriate file type or format
passwd: etc/master.passwd unchanged

Do you have any idea what could be causing this,  the user entery in
master.passwd looks fine.  From: [EMAIL PROTECTED] To:
[EMAIL PROTECTED]; misc@openbsd.org Subject: Re: lost root account
Date: Mon, 19 Nov 2007 21:37:19 +0100  Hi Marcus,  I thought it was enough
to add the root account through vipw. that this edits the master.passwd file
and would automatically update everything else? how would I use pwd_mkdb, i
don't want to delete any other accounts from the master.passwd file. 
thanks   Date: Mon, 19 Nov 2007 17:41:01 -0200 From:
[EMAIL PROTECTED] To: [EMAIL PROTECTED]; misc@openbsd.org Subject:
Re: lost root account  Boot your machine in single user mode (boot -s) and
use plain vi and pwd_mkdb soon after that.  There's no need to use vipw
when running in boot -s.  On Nov 19, 2007 5:18 PM, Jumping Mouse
[EMAIL PROTECTED] wrote:  Hi there, I have inherited an openBSD machine
with no root account. When I  boot up in single user mode boot -s and do a
cat /etc/master.passwd | root  the only thing I get is:
daemon:*:1:1::0:0:The devil  himself:/root:/sbin/nologin I can't seem to
make changes to the master.passwd  account by using vipw in single
usermode. I get a message that the file is  locked or busy. Can anyone help
in what I can do next? How can I add the  root account back to the
master.passwd file. thanks.   Express yourself instantly with MSN
Messenger! MSN Messenger 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/  
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



can't change password with passwd comand

2007-11-19 Thread Jumping Mouse
When I try to change a user password I get an error.
I do this:

#  passwd  username
enter a new password and  get: pwd_mkdb:  corrupted entrypwd_mkdb: at line
#24pwd_mkdb: /etc/ptmp: Innapropriate file type or formatpasswd:
etc/master.passwd unchanged

how can I fix this?
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/