From owner-freebsd-questions@FreeBSD.ORG Thu Feb 1 23:27:35 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0802516A403 for ; Thu, 1 Feb 2007 23:27:35 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id C5B5E13C4A5 for ; Thu, 1 Feb 2007 23:27:34 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] (archangel.daleco.biz [69.27.145.126]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id l11NRWkB082112; Thu, 1 Feb 2007 17:27:33 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <45C2775F.9090404@daleco.biz> Date: Thu, 01 Feb 2007 17:27:27 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.7) Gecko/20060925 SeaMonkey/1.0.5 MIME-Version: 1.0 To: Andrew Falanga References: <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> In-Reply-To: <340a29540702011007mcdb45bcya1db8732d78ecd34@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: ps oddity X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2007 23:27:35 -0000 Andrew Falanga wrote: > Hi, > > A couple of months ago I wrote a daemon process that opens up > connections on TCP and listens for incoming data (that ultimately ends up in a database). > Now, when I was writing it, I was debugging and what not under my own user > id. However, the program now runs as root because it's started > automatically when the system comes up at boot time. > How exactly? > Now, here's the strange part. When running under my user id, even in > daemon mode, ps -aux | grep would show me the daemon process. However, now > that it's running as root, it doesn't. Why is that? The only way I've > been able to tell that it's running is by using sockstat. What about `ps -aux | grep program_name`? KDK PS > Random .sig, NP. -- You are an insult to my intelligence! I demand that you log off immediately.