Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!)

2002-11-13 Thread Giorgos Keramidas
On 2002-11-11 11:57, "Gary W. Swearingen" <[EMAIL PROTECTED]> wrote: > Dirk-Willem van Gulik <[EMAIL PROTECTED]> writes: > > One would almost wish that things like the /etc/rc.conf, named and *mc > > files where there too :-) > > One guru who used to post here frequently kept /etc in CVS (and I sup

Re: REASON #7919 NOT to do things as root!

2002-11-12 Thread Michael Joyner
/var/backups Quoting joe <[EMAIL PROTECTED]>: > While playing around and trying to set aup a chroot environment > I did the following > cd /home/honza > mkdir {etc,dev,lib,bin,.} > > cat /etc/passwd | grep honza >/etc/passwd > ^<== location of

Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!)

2002-11-11 Thread Gary W. Swearingen
Dirk-Willem van Gulik <[EMAIL PROTECTED]> writes: > One would almost wish that things like the /etc/rc.conf, named and *mc > files where there too :-) One guru who used to post here frequently kept /etc in CVS (and I suppose that he backed that up). To Unsubscribe: send mail to [EMAIL PROTECTED]

Re: Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!)

2002-11-10 Thread Jack L. Stone
At 08:23 PM 11.10.2002 +0100, Dirk-Willem van Gulik wrote: > > >On Sun, 10 Nov 2002, Greg 'groggy' Lehey wrote: > >> # pwd_mkdb -p /etc/master.passwd >> >> /etc/passwd doesn't get used much any more. The real files are >> /etc/pwd.db and /etc/spwd.db. See the man page for pwd_mkdb for more >> d

Re: REASON #7919 NOT to do things as root!

2002-11-10 Thread joe
On November 9, 2002 11:26 pm, Stephen Hovey wrote: > /etc/passwd is made from master.passwd for those jobbies that still > need to look at the old style text file instead of making kernel > calls. You can regenerate it - I always forget the damn program name > - mk_pwdb or something like that - wh

Re: REASON #7919 NOT to do things as root!

2002-11-09 Thread Stephen Hovey
/etc/passwd is made from master.passwd for those jobbies that still need to look at the old style text file instead of making kernel calls. You can regenerate it - I always forget the damn program name - mk_pwdb or something like that - when I forget, I use vipw, change a latter in my real name i

Re: REASON #7919 NOT to do things as root!

2002-11-09 Thread Mikko Työläjärvi
On Sat, 9 Nov 2002, joe wrote: > While playing around and trying to set aup a chroot environment > I did the following > cd /home/honza > mkdir {etc,dev,lib,bin,.} > > cat /etc/passwd | grep honza >/etc/passwd > ^<== location of the >

Recovering /etc/passwd (was: REASON #7919 NOT to do things as root!)

2002-11-09 Thread Greg 'groggy' Lehey
On Saturday, 9 November 2002 at 17:25:54 -0800, joe wrote: > While playing around and trying to set aup a chroot environment > I did the following > cd /home/honza > mkdir {etc,dev,lib,bin,.} > > cat /etc/passwd | grep honza >/etc/passwd > ^<==

Re: REASON #7919 NOT to do things as root!

2002-11-09 Thread Kevin D. Kinsey, DaleCo, S.P.
From: "joe" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Saturday, November 09, 2002 7:25 PM Subject: REASON #7919 NOT to do things as root! > While playing around and trying to set aup a chroot environment > I did the following >

Re: REASON #7919 NOT to do things as root!

2002-11-09 Thread Paul A. Scott
> Is there anything I can do to recover /etc/passwd First off, BACKUP EVERYTHING RIGHT NOW! Seriously, before you do anything else. Then you can recover your /etc/passwd file by copying /etc/master.passwd to a temporary place. Edit this temporary file replacing all the encrypted passwords with a

REASON #7919 NOT to do things as root!

2002-11-09 Thread joe
While playing around and trying to set aup a chroot environment I did the following cd /home/honza mkdir {etc,dev,lib,bin,.} cat /etc/passwd | grep honza >/etc/passwd ^<== location of the