From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 24 06:07:00 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 456D616A41B for ; Tue, 24 Jul 2007 06:07:00 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.231]) by mx1.freebsd.org (Postfix) with ESMTP id 0158313C478 for ; Tue, 24 Jul 2007 06:06:59 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by wr-out-0506.google.com with SMTP id i21so1108431wra for ; Mon, 23 Jul 2007 23:06:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NFqoHYjYHWU2Z6jTJPo5802f5PhTP/7/5i735qcQ0fvDGO1J4IsDun2t0eulV6XJ1smhmh/UUbk/inFk/UoQJ8tTA23zlkseR4bII5yrnZ3/MuqSMekTACKa51DJWLyLAibBeDv3ZYfv23EAgpsQyKj4R2OX/ybTWNP00YVBC+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rmKYWDo2ut/sd9CO2Yk6AtW87k2ofBuFFx/uN+I22t/BdrEZIy3dmHiCA8Mnb2ggga0miQBcyiRnLJXi0BZ1vO0vqOmCckwUfGfmYzzrc24O2m6a/FO9ss3p1XsyzvFHj+fCtSd+ka5ZL9gjvFEbx1ToQynRzi0UtMSwHPEUCDw= Received: by 10.142.76.4 with SMTP id y4mr271346wfa.1185255473096; Mon, 23 Jul 2007 22:37:53 -0700 (PDT) Received: by 10.143.1.8 with HTTP; Mon, 23 Jul 2007 22:37:53 -0700 (PDT) Message-ID: <47d0403c0707232237t272f4e7exb0f55c21bbd097c7@mail.gmail.com> Date: Tue, 24 Jul 2007 00:37:53 -0500 From: "Ben Kaduk" To: "Darren Pilgrim" In-Reply-To: <46A577BB.5020400@bitfreak.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200707232052.58485.dmw@unete.cl> <46A577BB.5020400@bitfreak.org> Cc: FreeBSD Hackers , dmw@unete.cl Subject: Re: A few questions... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jul 2007 06:07:00 -0000 On 7/23/07, Darren Pilgrim wrote: > Daniel Molina Wegener wrote: > > Hello, > > > > I need information about few things, I hope someone can help > > me and thanks in advance. > > > > a) Is there any function or variable that tells me which is the > > root user UID in the system, or root always have 0 and it's > > an "elegant" option to compare the variables or structure > > members against zero. > > Root is always UID 0. Checking UID == 0 is the common practice for > determining if the effective UID has root priveleges. > But should it be common practice? What of suser(9) and priv(9)? -Ben Kaduk