[comp.unix.sysv386] ps fails

pjh@mccc.edu (Pete Holsberg) (02/09/91)

AT&T 6386/33 running SV/386 R3.2.2

When a user invokes ps, the system responds:

ps: unlink() failed
ps: /etc/ps_date, Permission denied
ps: Please notify your System Administrator.

/etc/ps_data is 644.  What gives?

Thanks,
Pete
-- 
Prof. Peter J. Holsberg      Mercer County Community College
Voice: 609-586-4800          Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh@mccc.edu	     Trenton Computer Festival -- 4/20-21/91

cpcahil@virtech.uucp (Conor P. Cahill) (02/09/91)

In article <1991Feb8.182949.22238@mccc.edu> pjh@mccc.edu (Pete Holsberg) writes:
>When a user invokes ps, the system responds:
>ps: unlink() failed
>ps: /etc/ps_date, Permission denied
>ps: Please notify your System Administrator.

From the FAQ posting:

16. Why do I get the error "ps: unlink() error" every once in a while?

	This error is caused by the ps program being unable to remove
	the /etc/ps_data file.  This is usually a permissions problem
	on /etc or /bin/ps.  The files and/or directories should
	be set with the following modes:

	drwxrwxr-x  20 root     sys         3968 Apr 29 08:36 /etc
	-r-xr-sr-x   1 root     sys        21472 May 22  1989 /bin/ps

	In english:
		/bin/ps must be mode 2xxx (set-gid)
		/bin/ps must have the same group as /etc (usually sys)
		/etc must be group writable


-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 

micro@micrtk.CACTUS.ORG (Ray Schafer) (02/10/91)

In article <1991Feb8.182949.22238@mccc.edu> pjh@mccc.edu (Pete Holsberg) writes:
>AT&T 6386/33 running SV/386 R3.2.2
>
>When a user invokes ps, the system responds:
>
>ps: unlink() failed
>ps: /etc/ps_date, Permission denied
>ps: Please notify your System Administrator.
>
>/etc/ps_data is 644.  What gives?

I understand that this is a known bug for the 3b2.  What we do is to
run a cron job every 10 mins to chmod it to 666, or you could "su" and
do a ps, that will fix it temporarily.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ray Schafer                     |Internet:
5004 Emerald Forest Circle      |micro@micrtk.cactus.org	
Austin, Texas 78745             |UUCP:
Ma Bell:                        |..!cs.utexas.edu!bigtex!micrtk!micro
(512) 441-1010                  |Disclaimer: Yeah, I meant it, so what?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gws@n8emr.uucp (Gary Sanders) (02/10/91)

In article <1991Feb8.182949.22238@mccc.edu> pjh@mccc.edu (Pete Holsberg) writes:
>AT&T 6386/33 running SV/386 R3.2.2
>
>When a user invokes ps, the system responds:
>ps: unlink() failed
>ps: /etc/ps_date, Permission denied
>ps: Please notify your System Administrator.
>/etc/ps_data is 644.  What gives?

I see the same thing from time to time on my  system, I am running 
Interactive 2.2. It seems to happen if you do a "ps" then try
to stop the command before it finishes.




-- 
Gary W. Sanders (gws@n8emr or ...!osu-cis!n8emr!gws), 72277,1325
N8EMR @ W8CQK (ip addr) 44.70.0.1 [Ohio AMPR address coordinator]
HAM BBS (1200/2400/9600/V.32/PEP/MNP=L5) 614-895-2553
Voice: 614-895-2552 (eves/weekends)

pjh@mccc.edu (Pete Holsberg) (02/12/91)

In article <1991Feb09.140600.20193@virtech.uucp> cpcahil@virtech.UUCP (Conor P. Cahill) writes:
=In article <1991Feb8.182949.22238@mccc.edu> pjh@mccc.edu (Pete Holsberg) writes:
=>When a user invokes ps, the system responds:
=>ps: unlink() failed
=>ps: /etc/ps_date, Permission denied
=>ps: Please notify your System Administrator.
=
=From the FAQ posting:

Oops!  Sorry.

Pete
-- 
Prof. Peter J. Holsberg      Mercer County Community College
Voice: 609-586-4800          Engineering Technology, Computers and Math
UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
Internet: pjh@mccc.edu	     Trenton Computer Festival -- 4/20-21/91

marz@cbnewsb.cb.att.com (martin.zam) (02/21/91)

>AT&T 6386/33 running SV/386 R3.2.2
>
>When a user invokes ps, the system responds:
>
>ps: unlink() failed
>ps: /etc/ps_date, Permission denied
>ps: Please notify your System Administrator.
>
>/etc/ps_data is 644.  What gives?
>
>Thanks,
>Pete
>-- 
>Prof. Peter J. Holsberg      Mercer County Community College
>Voice: 609-586-4800          Engineering Technology, Computers and Math
>UUCP:...!princeton!mccc!pjh  1200 Old Trenton Road, Trenton, NJ 08690
>Internet: pjh@mccc.edu	     Trenton Computer Festival -- 4/20-21/91
>

Peter,
	The directory "/etc" should be group writable, with the group 
"usually" being sys.  If you check the permissions on "/bin/ps" you'll
see that this program is set-group-id and group owned by sys.  For
"ps" to work properly, the program needs to be allowed to modify the 
"/etc" directory.

$ ls -l /bin/ps
-r-xr-sr-x   1 bin      sys        38912 Sep  5  1989 /bin/ps
$     ^
      |
set-group-id bit set.

						Hope this helps,
						Martin Zam
						(201)564-2554