From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 16:54:09 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79DDD106564A for ; Mon, 15 Aug 2011 16:54:09 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 374148FC0C for ; Mon, 15 Aug 2011 16:54:08 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qt0QP-0006za-Vr for freebsd-questions@freebsd.org; Mon, 15 Aug 2011 18:54:05 +0200 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2011 18:54:05 +0200 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Aug 2011 18:54:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Date: Mon, 15 Aug 2011 12:59:07 -0400 Lines: 21 Message-ID: References: <20110815163659.GA22081@gmail.com> <238F0CF5-33DC-4F9A-88E3-F8356E125573@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net Subject: Re: unprivledged users (for a service) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 16:54:09 -0000 Chuck Swiger wrote: > On Aug 15, 2011, at 9:37 AM, Chris Brennan wrote: >> It's been a while since I've had to do this and the drive that contained >> all of my notes is dead, along with the backup (I was actually lucky to >> recover my home drive before it also failed but my notes were not >> there). I cannot for the life of me remember how to properly add an >> unprivledged user that will only be used for running a specific system >> service. So it doesn't need a login shell or $HOME. > > Add a user and set the shell to /bin/false or perhaps /sbin/nologin; for > $HOME set it to /var/empty or /tmp, perhaps. > > Regards, I always used to look at user 'nobody' in vipw for this: nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin -Mike