Subject: Re: Problems w/1.6.2 source
To: McLean Pickett <McLean.Pickett@ptgcorp.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 08/12/2005 18:17:31
In message <36E88C352318BC468EC5EF07C76ACC9B98AF39@Z3EXCHANGE01.ptg-domain.com>
, "McLean Pickett" writes:

>
>Hello -
>
>I had a 1.6.2 box that I had deleted the src files from. I used cvs and
>checked out the netbsd-1-6 source tree, compiled a custom kernel,
>installed it and rebooted the box.
>
>It came back up with some different behavior. I can no longer SU (from
>ssh or console) from user accounts nor can I run netstat. I installed
>the GENERIC kernel and am still having the same problems.
>
>netstat says:
>netstat: /dev/mem: Permission denied
>
>I found these unexpected messages in dmesg:
>pci_mem_find: void region
>pci_mem_find: void region
>pci_mem_find: void region
>
>I am able to log into the console as root. Any ideas?

Verify the permissions on su and netstat.  Are they properly setuid/
setgid?  I don't recall about 1.6.2, but on newer versions if you build 
with -U but don't install that way you can get exactly those symptoms.

		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb