From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1065ea,9361b2f90dcb4b4d X-Google-Attributes: gid1065ea,public X-Google-Thread: 111c93,9361b2f90dcb4b4d X-Google-Attributes: gid111c93,public X-Google-Thread: 10a997,9361b2f90dcb4b4d X-Google-Attributes: gid10a997,public From: "Alan A. Beall" Subject: Re: Did i accidentally break my server? Date: 2000/01/24 Message-ID: <388BDA26.39231BD5@dingoblue.net.au>#1/1 X-Deja-AN: 576775223 Content-Transfer-Encoding: 7bit References: To: John Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@optusnet.com.au X-Trace: news1.mpx.com.au 948689465 5939 198.142.59.75 (24 Jan 2000 04:51:05 GMT) Organization: Optus Internet Mime-Version: 1.0 Reply-To: alan_beall@dingoblue.net.au NNTP-Posting-Date: 24 Jan 2000 04:51:05 GMT Newsgroups: alt.unix.wizards,alt.uu.comp.os.linux.questions,comp.os.linux.alpha Difficult to say what's going on but there are some things you might look at to find out. a) execute the command "strings /usr/bin/passwd | grep '/' " and look through the output for the pathnames of files you can later check to ensure that they are still available to the system. The passwd command usually depend s on a shared library and its path will be shown in the ouput of the command given above. b) execute the command sum -r /bin/passwd and then verify the checksums are the same as those on a similar system. c) Make sure the permissions of the passwd executable are correct particularly that any SUID or SGID bits are set. There should be at least a SUID or SGID bit set on the executable and also that the user and group ownerships are correct for your system. On linux Red Hat 6.x the path is /usr/bin/passwd: -r-s--x--x 1 root root /usr/bin/passwd and on UnixWare 7.x it is -r-sr-sr-x 1 root sys /bin/passwd and on SCO Open Server 5.x it is ---x--s--x 1 bin auth /bin/passwd The purpose of giving you the non linux examples was to show that the permissions may be different between whoever distributes your version of unix. Never expect them to be all the same. Perhaps removing a rpm forced the removal of a shared library. I hope this helps. Regards, Alan Beall. 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