Re: strange vipw message !!!!

2006-03-26 Thread joerch
On Sun, Mar 26, 2006 at 05:07:51AM -0800, Edi Mitrea wrote:
> hi there,

Hello

> las night i tried to install a mail server, i mean postfix. i tried to add 2 
> users, with useradd or adduser commands but i called off. later when i tried 
> to change some stuff in my passwd file, whitch i tried to edit with "vipw" it 
> keep giving me this message all the time :
> 
> bash-3.00# vipw
> vipw: the passwd file is busy or you cannot lock.

If you are not root, please try sudo vipw or login as root and try vipw again.

> bash-3.00# useradd someuser
> useradd: can't obtain pw_lock: File exists

Same as above.

If this solves your problems, my advice is to buy a book about
unix administration and/or special books about openbsd.
AND read the faq and the manpage, after that you have very few
questions ;).


-- 
gruesse 
joerg "joerch" buechner
--
"Kaum macht mans richtig, 
schon funktionierts!"
(busack thomas)
--



Re: strange vipw message !!!!

2006-03-26 Thread Gabriel George POPA

Solved?



Re: strange vipw message !!!!

2006-03-26 Thread Gabriel George POPA

The problem is the following:
-> read the pw_lock(3) man page (do: man 3 pw_lock);
-> read it entirely;
-> understand that manual page;
-> (the most important step) check if the /etc/ptmp file is in the 
filesystem and remove it.
You'll see that things are now all right. Maybe you'll need to re-add 
those 2 users.


  
Yours in BSDness,
  
Gabriel George POPA



Edi Mitrea wrote:


hi there,

las night i tried to install a mail server, i mean postfix. i tried to add 2 users, with 
useradd or adduser commands but i called off. later when i tried to change some stuff in 
my passwd file, whitch i tried to edit with "vipw" it keep giving me this 
message all the time :

bash-3.00# vipw
vipw: the passwd file is busy or you cannot lock.

i try to add some user in normal mode with ordinary commands and i got this 
message:

bash-3.00# useradd someuser
useradd: can't obtain pw_lock: File exists

I mention the fact that i've already restarted my box, i took a lock at KERN.SECURELEVEL whitch is 1. 

Would someone be kind to explain to me what's happen? 


thx in advance

edi




strange vipw message !!!!

2006-03-26 Thread Edi Mitrea
hi there,

las night i tried to install a mail server, i mean postfix. i tried to add 2 
users, with useradd or adduser commands but i called off. later when i tried to 
change some stuff in my passwd file, whitch i tried to edit with "vipw" it keep 
giving me this message all the time :

bash-3.00# vipw
vipw: the passwd file is busy or you cannot lock.

i try to add some user in normal mode with ordinary commands and i got this 
message:

bash-3.00# useradd someuser
useradd: can't obtain pw_lock: File exists

I mention the fact that i've already restarted my box, i took a lock at 
KERN.SECURELEVEL whitch is 1. 

Would someone be kind to explain to me what's happen? 

thx in advance

edi