Re: [gentoo-user] PRNG is not seeded

2008-03-27 Thread Roger Mason
Alex Schuster [EMAIL PROTECTED] writes:

 Dale writes:

 Kaushal Shriyan wrote:

  Both the files /dev/random and /dev/urandom are missing in my system.
 
 I just noticed this on mine.  Do you have the service urandom in the
 boot runlevel?

 Looking at the init script it seems like if the character 
 device /dev/urandom does not exist, it exits directly.

 Does anyone know what exactly creates these device nodes and why it could 
 fail? 

Some kernel option?

grep RANDOM /usr/src/linux/.config
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_INTEL=y
CONFIG_HW_RANDOM_AMD=y
CONFIG_HW_RANDOM_GEODE=y
CONFIG_HW_RANDOM_VIA=y

Roger
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] PRNG is not seeded

2008-03-27 Thread Alex Schuster
Roger Mason writes:

 Alex Schuster [EMAIL PROTECTED] writes:
[/dev/random, /dev/urandom]
  Does anyone know what exactly creates these device nodes and why it
  could fail?

 Some kernel option?

 grep RANDOM /usr/src/linux/.config
 CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_INTEL=y
 CONFIG_HW_RANDOM_AMD=y
 CONFIG_HW_RANDOM_GEODE=y
 CONFIG_HW_RANDOM_VIA=y

No, I think they are for special hardware randoem generators only. I don't 
heve those enabled in my .config.

Wonko

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] PRNG is not seeded

2008-03-27 Thread Florian Philipp

On Wed, 2008-03-26 at 23:24 +0530, Kaushal Shriyan wrote:
 On Wed, Mar 26, 2008 at 9:46 PM, Neil Bothwick [EMAIL PROTECTED]
 wrote:
 On Wed, 26 Mar 2008 21:17:07 +0530, Kaushal Shriyan wrote:
 
  when i restart sshd I get PRNG is not seeded
 
  # /etc/init.d/sshd restart
  PRNG is not seeded
 
 
 Does /dev/urandom exist? What are it's permissions?
 
 
 --
 Neil Bothwick
 
 Never eat more than you can lift.
 
 Hi
 
 Thanks for the clue,
 
 Both the files /dev/random and /dev/urandom are missing in my system. 
 
 How do i go ahead in fixing this issue
 
 Thanks and Regards
 
 Kaushal
 

I'm not sure if this is a permanent solution because /dev is a tmpfs
created by udev on startup (maybe there is your problem?) but you could
try

mknod -m 444 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9

Both commands are taken from Linux from Scratch.

There is a static /dev lying on your root-partition. It should have been
created when you extracted your stage3-tarball during installation.
Maybe there is something wrong with that one and udev doesn't create
(u)random when they are not in the static one. To see the static /dev
you must unmount /dev, which you can only do from a live-cd.


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-user] PRNG is not seeded

2008-03-27 Thread Neil Bothwick
On Thu, 27 Mar 2008 18:38:15 +0100, Florian Philipp wrote:

 To see the static /dev
 you must unmount /dev, which you can only do from a live-cd.

That's not true, you can also see it by bind mounting root somewhere else.

mount -bind / /mnt
ls -l /mnt/dev


-- 
Neil Bothwick

If you're not part of the solution, you're part of the precipitate. *
Wright


signature.asc
Description: PGP signature


Re: [gentoo-user] PRNG is not seeded

2008-03-27 Thread Dale

Alex Schuster wrote:

Roger Mason writes:

  

Alex Schuster [EMAIL PROTECTED] writes:


[/dev/random, /dev/urandom]
  

Does anyone know what exactly creates these device nodes and why it
could fail?
  

Some kernel option?

grep RANDOM /usr/src/linux/.config
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_INTEL=y
CONFIG_HW_RANDOM_AMD=y
CONFIG_HW_RANDOM_GEODE=y
CONFIG_HW_RANDOM_VIA=y



No, I think they are for special hardware randoem generators only. I don't 
heve those enabled in my .config.


Wonko

  


I don't have those either.

[EMAIL PROTECTED] / # grep RANDOM /usr/src/linux/.config
# CONFIG_HW_RANDOM is not set
[EMAIL PROTECTED] / #


Not sure where that device comes from.  I do have them on my system tho.

Dale

:-)  :-)
--
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] PRNG is not seeded

2008-03-26 Thread Kaushal Shriyan
Hi

when i restart sshd I get PRNG is not seeded

# /etc/init.d/sshd restart
PRNG is not seeded
 #

No idea as what is going on

Thanks and Regards

Kaushal


Re: [gentoo-user] PRNG is not seeded

2008-03-26 Thread Alex Schuster
Kaushal Shriyan writes:

 when i restart sshd I get PRNG is not seeded

 # /etc/init.d/sshd restart
 PRNG is not seeded
  #

 No idea as what is going on

I can reproduce this behaviour when I rename both /dev/random 
and /dev/urandom. Are they perhaps both missing on your system?

Wonko
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] PRNG is not seeded

2008-03-26 Thread Neil Bothwick
On Wed, 26 Mar 2008 21:17:07 +0530, Kaushal Shriyan wrote:

 when i restart sshd I get PRNG is not seeded
 
 # /etc/init.d/sshd restart
 PRNG is not seeded

Does /dev/urandom exist? What are it's permissions?


-- 
Neil Bothwick

Never eat more than you can lift.


signature.asc
Description: PGP signature


Re: [gentoo-user] PRNG is not seeded

2008-03-26 Thread Kaushal Shriyan
On Wed, Mar 26, 2008 at 9:46 PM, Neil Bothwick [EMAIL PROTECTED] wrote:

 On Wed, 26 Mar 2008 21:17:07 +0530, Kaushal Shriyan wrote:

  when i restart sshd I get PRNG is not seeded
 
  # /etc/init.d/sshd restart
  PRNG is not seeded

 Does /dev/urandom exist? What are it's permissions?


 --
 Neil Bothwick

 Never eat more than you can lift.


Hi

Thanks for the clue,

Both the files /dev/random and /dev/urandom are missing in my system.

How do i go ahead in fixing this issue

Thanks and Regards

Kaushal


Re: [gentoo-user] PRNG is not seeded

2008-03-26 Thread Dale

Kaushal Shriyan wrote:
On Wed, Mar 26, 2008 at 9:46 PM, Neil Bothwick [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


On Wed, 26 Mar 2008 21:17:07 +0530, Kaushal Shriyan wrote:

 when i restart sshd I get PRNG is not seeded

 # /etc/init.d/sshd restart
 PRNG is not seeded

Does /dev/urandom exist? What are it's permissions?


--
Neil Bothwick

Never eat more than you can lift.


Hi

Thanks for the clue,

Both the files /dev/random and /dev/urandom are missing in my system.

How do i go ahead in fixing this issue

Thanks and Regards

Kaushal



I just noticed this on mine.  Do you have the service urandom in the 
boot runlevel? 


[EMAIL PROTECTED] / # eselect rc list boot
Init scripts to be started by runlevel boot
 bootmisc
 checkfs
 checkroot
 clock
 consolefont
 hostname
 keymaps
 localmount
 modules
 net.lo
 rmnologin
 serial
 urandom
[EMAIL PROTECTED] / #


That may help.  If it is there, try restarting it and see if you get any 
errors.  Make sure you don't have anything important running just in 
case it stops other services when restarting this service.


Dale

:-)  :-) 
--

gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] PRNG is not seeded

2008-03-26 Thread Alex Schuster
Dale writes:

 Kaushal Shriyan wrote:

  Both the files /dev/random and /dev/urandom are missing in my system.
 
  How do i go ahead in fixing this issue
 
  Thanks and Regards
 
  Kaushal

 I just noticed this on mine.  Do you have the service urandom in the
 boot runlevel?

Looking at the init script it seems like if the character 
device /dev/urandom does not exist, it exits directly.

Does anyone know what exactly creates these device nodes and why it could 
fail? 
You could try to create them manually, but I doubt that this helps:
  mknod /dev/random  c 1 8
  mknod /dev/urandom c 1 9

Kayshal, do you remember doing anything spoecial before this happened? 
Booting a new kernel, updating things like hotplug / udev stuff?

Wonko
-- 
gentoo-user@lists.gentoo.org mailing list