Subject: /dev/mem: Permission denied - what have I done?
To: None <netbsd-help@netbsd.org>
From: David Chapman <dchapman@CS670402-A.gvcl1.bc.wave.home.com>
List: netbsd-help
Date: 01/25/2001 10:02:59
Well, I've messed something up again.  When, as a non-root user, I try and
start certain apps I get messages like:

Gdk-WARNING **: shmget failed!
kvm_open: /dev/mem: Permission denied
LibGTop-Server: kvm_open: permission denied
glibtop: Requested 49 bytes but got 0.

Running the same apps as root I get:

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key

Gtk-WARNING **: cannot open display: :0

When did this start?  Well *blush* when I made a typo and stripped the
SetUID bit from _everything_ in /usr/X11R6/bin.

I have no idea which files had this bit set, except for XFree86.

What is the best way to handle this.  Should I just run through the X
install again?

  Thanks,
   Dave Chapman
[watching the screen now, not seven of nine.... sometimes]

-- 
Dave Chapman                       |    "tar is not a plaything"
dchapman@canwest.victoria.bc.ca    |    bsimpson@dt.springfield.edu