From: Ray.Bellis@psy.ox.ac.uk (Ray Bellis)
Subject: Re: Yppasswd As Root Illogical Captain.
Date: 1995/07/25 [thread overview]
Message-ID: <RAY.BELLIS.95Jul25163844@axp01.mrc-bbc.ox.ac.uk> (raw)
In-Reply-To: 806153650.6742@sps.siemens.co.uk
In article <3usi6m$ph5@mrnews.mro.dec.com> Peter.Mayne@cao.mts.dec.com (Peter Mayne) writes:
In article <RAY.BELLIS.95Jul21082334@axp01.mrc-bbc.ox.ac.uk>
Ray.Bellis@psy.ox.ac.uk (Ray Bellis) wrote:
> It should be a trivial exercise for any competent sysadmin to write
> a shell script which will blank out the encrypted password field in
> the source for your NIS database (to be run on the NIS master, of
> course). After rebuilding the NIS maps you would then just be able
> to press `enter' when asked for the original password.
But this leaves a great big security hole (null password) between the
time that the maps get rebuilt and the time that you change the password.
Anybody could log on as that user.
You're right, of course. Then again, could anyone say that the hole
introduced is any worse a hole than running NIS in the first place? ;-)
How about getting the shell script to insert a real encrypted password
into the /var/yp/src/passwd file instead of a blank field. That surely
would be a lot more secure. The sysadmin could then type in this known
dummy password at the yppasswd prompt.
Actually, if you knew exactly what lockfile (/var/yp/.ptmp ?) is used
by rpc.yppasswdd it would be very easy to write a C program to read the
password file and insert the new password for you, having chosen a
random `salt' for the crypt(3) function (C2 enhanced security permitting).
Ray.
--
Computing Officer, MRC Research Centre in Brain and Behaviour, Oxford
<http://www.mrc-bbc.ox.ac.uk/~rpb> <mailto:Ray.Bellis@psy.ox.ac.uk>
prev parent reply other threads:[~1995-07-25 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-19 4:00 Yppasswd As Root Illogical Captain jim
1995-07-19 4:00 ` Mike Iglesias
1995-07-20 4:00 ` PAUL D. CHAPIN
1995-07-20 4:00 ` Mike Iglesias
1995-07-20 4:00 ` Michael Sternberg
1995-07-21 4:00 ` Ray Bellis
1995-07-21 4:00 ` PAUL D. CHAPIN
1995-07-23 4:00 ` Peter Mayne
1995-07-24 4:00 ` g0daeniken
1995-07-26 4:00 ` Mark W. Watson
1995-07-25 4:00 ` doug.berry
1995-07-25 4:00 ` Ray Bellis [this message]
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