*BSD News Article 92825


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!su-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!howland.erols.net!feed1.news.erols.com!jmurray.campus.vt.edu!not-for-mail
From: jmurray@vt.edu (John Murray)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problem with xload
Date: 4 Apr 1997 10:38:08 -0500
Organization: Personal Workstation
Lines: 32
Message-ID: <5i3790$p4c$1@jmurray.campus.vt.edu>
References: <5i2knr$b55$1@pinta.kolumbus.fi>
NNTP-Posting-Host: spg-as49s41.erols.com
X-Received-On: 4 Apr 1997 10:37:58 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38483

In article <5i2knr$b55$1@pinta.kolumbus.fi>,
Juhana Enqvist  <juke@dna.fi> wrote:
>
>Since I compiled a new version of Xfree86 (using the makefile in ports
>collection) xload has given me the following message:
>
>xload: can't open kvm files wØ¿ï
>
>(the characters after the word "files" change from time to time).
>
>But if I su as root in the same xterm, it works fine, so I suspect it's a
>permission problem in a file somewhere. But what file? Any ideas?

Well your on the rgiht it is a permission problem.  I belive xload needs
to SGID kmem ie it's permissilws should be:

   -rwxr-sr-x  1 root  kmem  12288 Mar 21 00:01 /usr/X11R6/bin/xload

So these commands should fix it:

  chown root.kmem /usr/X11R6/bin/xload
  chmod 2555 /usr/X11R6/bin/xload

This should fix this, but this happened to me as well,  it seems like
the distribution has a problem. or is this a security "feature".

Hope this helps.


-- 
John Murray -=- jmurray@vt.edu johns@tmbg.org -=- http://acm.vt.edu/~jmurray
The Unofficial Pritchard Home Page ->http://csugrad.cs.vt.edu/~murray/pritchard