RE: a very annoying pb with accounts
From: Steve Hodgson (steve_at_acidy.com)
Date: 09/30/04
- Previous message: Subhro: "Re: Error mounting Linux ext2fs drive"
- In reply to: Grégory Nou: "a very annoying pb with accounts"
- Next in thread: Subhro: "Re: a very annoying pb with accounts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: 'Grégory Nou' <gregorynou@altern.org>, <freebsd-questions@freebsd.org> Date: Thu, 30 Sep 2004 15:25:20 +0100
owner-freebsd-questions@freebsd.org wrote:
> Hi everybody,
>
> Here is my (weird) problem ...
> I opened /etc/spwd.db with ee and exited (which was actually
> a very bad
> idea, even if I did not modified anything). At this time, everything
> was still ok.
> Then, a few minutes later, I tried to su ... Impossible : I get some
> weird error message telling me "su: who are you ?"
> Then I tried to log directly from the login shell on tty0 with my
> account... unknown user. I add a look at /etc/passwd : everything was
> correct.
> And when I tried to recreate my account : "user already
> exists" Then I reboot (the second very bad idea in the same
> day), and user "gdm"
> didn't exist anymore.
> Exactly as if I forgot to make mergemaster after upgrading, but with
> only one difference : I actually didn't made a upgrade.
> So now the situation is : I can only access with root
> account. Does someone know when I did a mistake ? and does
> someone knows how to
> fix it ? Should I delete account in /etc/passwd and create
> them again ?
> I had this idea, but I didn't want to make another stupid
> thing today :) Thanks a lot
I can only guess that you need to use pwd_mkdb. Probably the easiest way to
do this is to use /sbin/vipw, just doing ":wq" to save the changes (though
there will be none), which will run pwd_mkdb for you.
Steve
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Subhro: "Re: Error mounting Linux ext2fs drive"
- In reply to: Grégory Nou: "a very annoying pb with accounts"
- Next in thread: Subhro: "Re: a very annoying pb with accounts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- User Account Internet Access post SP2 install
... Since upgrading to SP2 I have not experienced any adverse affects within my ...
user account. ... they receive an error message from my anti-spyware program, SpyStopper,
... behavior on wired Dell Desktop and a wireless Dell Laptop. ... (microsoft.public.windowsxp.help_and_support) - Re: pam, ssh, user account vulnerability
... to give a bit of resolution: I discovered why the PAM settings ... Granted,
I should have been a bit more careful when upgrading, but I'd ... The attacker is still
trying to access that account ... The attacker wasn't too savvy -- the hack kits
installed contained ... (comp.os.linux.setup) - Re: Downloaded ie7, now Windows wants password
... I did something similar only not with upgrading IE. ... password before for
either account. ... I tried SafeMode but also gets you a login box. ... It
booted back up with a logon window. ... (microsoft.public.windowsxp.help_and_support) - Re: Paypal
... >>> Am I going to have to fork out for the account as it says? ...
>> want to accept credit card payments. ... >> received after upgrading.
... The Yorkshire Anthem ... (uk.people.consumers.ebay) - Re: Paypal
... >> Am I going to have to fork out for the account as it says? ... >
to accept credit card payments. ... > received after upgrading. ... (uk.people.consumers.ebay)