Trying to build OpenSSH-2.1.0 on HP-UX 10.20

Lutz Jaenicke Lutz.Jaenicke at aet.TU-Cottbus.DE
Thu May 11 18:55:17 EST 2000


On Wed, May 10, 2000 at 11:31:44AM +0200, Lutz Jaenicke wrote:
> serv01 111: /usr/local/openssh/bin/ssh -2 -p 24 serv01
> PRNG seedfile /home/aet/serv01/jaenicke/.ssh/prng_seed must be mode 0600, owned by uid 11019
> serv01 112: ls -al ~/.ssh/prng_seed 
> -rw-------   1 jaenicke   aet           1024 May 10 11:26 /home/aet/serv01/jaenicke/.ssh/prng_seed

entropy.c:447
if (((st.st_mode & 0177) != 0) || !(st.st_uid == geteuid()))
	fatal("PRNG seedfile %.100s must be mode 0600, owned by uid %d,"
	filename, getuid());

Since ssh is suid to root, geteuid() yields "0". Shouldn't the test be
against getuid() (which is also used for the error message)?
[works for me with this change]

Best regards,
	Lutz
-- 
Lutz Jaenicke                             Lutz.Jaenicke at aet.TU-Cottbus.DE
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153





More information about the openssh-unix-dev mailing list