Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!samsung!uunet!lotus!esegue!johnl From: johnl@esegue.segue.boston.ma.us (John R. Levine) Newsgroups: comp.unix.questions Subject: Re: problems with ps(1) Summary: wrong permission bits Keywords: ps unlink() Message-ID: <1989Nov10.153121.6535@esegue.segue.boston.ma.us> Date: 10 Nov 89 15:31:21 GMT References: <269@zeek.UUCP> Reply-To: johnl@esegue.segue.boston.ma.us (John R. Levine) Organization: Segue Software, Cambridge MA Lines: 23 In article <269@zeek.UUCP> rick@zeek.UUCP (Rick Wilhelm) writes: >ps: unlink() failed >ps: /etc/ps_data, Permission denied >ps: Please notify your System Administrator The first time ps runs after a reboot, it looks up all of the kernel symbols that it needs and saves them in /etc/ps_data. (It probably does the same thing if /unix is newer than ps_data.) Thereafter it looks in the file rather than looking them up again. For this hack to work, ps needs to be able to read /unix and /dev/kmem, and to be able to write in /etc. Here are the permissions on my system that make it possible: -r-xr-sr-x 1 root sys 21472 May 8 1989 /bin/ps cr--r----- 1 sys sys 2, 1 May 8 1989 /dev/kmem drwxrwxr-x 19 root sys 3312 Nov 10 09:26 /etc Usually the problem is that /etc isn't 775 or else /etc and /bin/ps aren't in the same group. -- John R. Levine, Segue Software, POB 349, Cambridge MA 02238, +1 617 864 9650 johnl@esegue.segue.boston.ma.us, {ima|lotus|spdcc}!esegue!johnl Massachusetts has over 100,000 unlicensed drivers. -The Globe