From: "Alan A. Beall" <alan_beall@dingoblue.net.au>
To: John <plastic@no_spam.oh.verio.com>
Subject: Re: Did i accidentally break my server?
Date: 2000/01/24 [thread overview]
Message-ID: <388BDA26.39231BD5@dingoblue.net.au> (raw)
In-Reply-To: MPG.12f4697d663cb4cd9896b0@oh.news.verio.net
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
next prev parent reply other threads:[~2000-01-24 5:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-23 5:00 Did i accidentally break my server? John
2000-01-23 5:00 ` Oscar Goosens
2000-01-24 5:00 ` michael james obrien
2000-01-24 5:00 ` Alan A. Beall [this message]
2000-01-29 5:00 ` Marcin Zawadzki
2000-01-31 5:00 ` SV: " Kai Nilsen
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox