From owner-freebsd-stable@FreeBSD.ORG Fri Dec 2 15:00:25 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E6C6106566C for ; Fri, 2 Dec 2011 15:00:25 +0000 (UTC) (envelope-from bartosz.stec@it4pro.pl) Received: from mainframe.kkip.pl (kkip.pl [78.9.102.18]) by mx1.freebsd.org (Postfix) with ESMTP id 10A4E8FC13 for ; Fri, 2 Dec 2011 15:00:24 +0000 (UTC) Received: from t420i.admin.lan.kkip.pl ([10.66.3.254]) by mainframe.kkip.pl with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1RWU4G-000D1x-36 for freebsd-stable@freebsd.org; Fri, 02 Dec 2011 15:26:30 +0100 Message-ID: <4ED8E000.1060903@it4pro.pl> Date: Fri, 02 Dec 2011 15:26:08 +0100 From: Bartosz Stec Organization: IT4Pro User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: FreeBSD Stable X-Stationery: 0.7.7 X-Authenticated-User: bartosz.stec@it4pro.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.1 X-Spam-Score-Int: -80 X-Exim-Version: 4.77 (build at 27-Oct-2011 16:42:31) X-Date: 2011-12-02 15:26:30 X-Connected-IP: 10.66.3.254:50574 X-Message-Linecount: 82 X-Body-Linecount: 69 X-Message-Size: 2535 X-Body-Size: 2006 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ps, systat vs top shows different process owner? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2011 15:00:25 -0000 Hi list, I have a SAMBA server (version 3.5.11) installed over 8.2-STABLE. I have just noticed, that top shows USERNAME of all smbd processes as root, while systat and ps show user logged to SAMBA. ps output of example user: # ps -a -U foo.bar PID TT STAT TIME COMMAND 19731 ?? S 0:10,19 /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf top output for the same PID: # top -d1 | grep 19731 19731 root 1 44 0 17220K 7844K select 0:12 0.29% smbd systat output is consistent with ps. Is that expected behaviour? Could someone explain it to me? -- Bartosz Stec