From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9361b2f90dcb4b4d X-Google-Attributes: gid111c93,public X-Google-Thread: 1065ea,9361b2f90dcb4b4d X-Google-Attributes: gid1065ea,public X-Google-Thread: 10a997,9361b2f90dcb4b4d X-Google-Attributes: gid10a997,public From: Marcin Zawadzki Subject: Re: Did i accidentally break my server? Date: 2000/01/29 Message-ID: <38695E51.DCAFFC1D@elektron.elka.pw.edu.pl>#1/1 X-Deja-AN: 578993407 Content-Transfer-Encoding: 7bit References: X-Accept-Language: pl,en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@tpsa.pl X-Trace: news.tpnet.pl 949108126 212.160.55.70 (Sat, 29 Jan 2000 02:08:46 MET) Organization: TPNET - http://www.tpnet.pl MIME-Version: 1.0 Reply-To: mzawadzk@elektron.elka.pw.edu.pl NNTP-Posting-Date: Sat, 29 Jan 2000 02:08:46 MET Newsgroups: alt.unix.wizards,alt.uu.comp.os.linux.questions,comp.os.linux.alpha,alt.unix.wizards I have similar problem ( user "root" not exist ) on my mandrake 6.1 (Red Hat clone) . When you have system disk , or you have cdrom you may 1 - start system from cdrom , or floppy 2 - mount your hard drive 3 - do with any system files anything you want Another tip . I don't now what system you have , but i write you the way , in with i hacked my own system , when i had lost my root acount. 1- I launched Mandrake install from cd-room 2- Chose "expert" mode 3- And I chose "upgrate" 4- Alt-Fx allow to switch between screens 5- On screen with sh prompt "cd some directory" ( I cannot rememeber with one - but my system was so nice , and he had mounted all /dev/hda(1-6) to this directory ) 6- I simply set UID of hamer ( my normal acount ) to 0 7- I have reboot systen (normal , not from cd-rom ) 8- Logged in as "hamer" 9- Repaired all damages by the way - i have damaged my /etc/passwd , when i had tested my own program to add/del and modify users. ( User i was deleted , was root ) John wrote: > Lemme start here. The system in question is a Cabriolet > alpha. I was upgrading a few libraries so I could do > my c++ programming for school on it. I decided along > the way that I would clean out the other rpm's > that I didnt need. (I dont use X). I didnt remove > anything that I /knew/ had to be there. and I didnt > upgrade anything that I didnt yet know about. I > am running the system quasi-headless. just no monitor. > I ssh'd to it, as root, and passwd immediatly told > me I needed to change my passwd. so I did. > it didnt take for some reason, it didnt sefault, > it just didnt like it. I hooked the monitor back up, > noticed that it thought it was jan 1 1970. > I tried to login as root, and it failed. > I tried to login as me, 'john', and it failed > I logged in as me, via roots pw. and I cannot change > pw's because passwd now segfaults. I havent changed > that much, so /etc/passwd is still world readable. > user 'john' has a pw. user 'root' doesnt, I deleted it. > (the machine isnt on the net.) I dont know what > else to do, I havent had anything like this happen > before. ANY help is sincerly appreciated, I have coding > for shcool to crank out on it, and I cannot work on the > machine as it is. if I need to post anything else, please > tell me. > -- > plastic(at)oh(dot)verio(dot)com