From owner-freebsd-questions@FreeBSD.ORG Sun Jan 18 13:42:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40B3D16A4CE for ; Sun, 18 Jan 2004 13:42:15 -0800 (PST) Received: from 82-41-27-158.cable.ubr04.edin.blueyonder.co.uk (82-41-27-158.cable.ubr04.edin.blueyonder.co.uk [82.41.27.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA55143D1F for ; Sun, 18 Jan 2004 13:42:11 -0800 (PST) (envelope-from andrew@cream.org) Received: from cream.org (spatula.flat [192.168.0.2]) by myriad.flat (Postfix) with ESMTP id DECD7C2; Sun, 18 Jan 2004 20:35:02 +0000 (GMT) Message-ID: <400AFDBD.6000808@cream.org> Date: Sun, 18 Jan 2004 21:42:21 +0000 From: Andrew Boothman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hartzell@kestrel.alerce.com References: <16394.51553.280751.990205@rosebud.alerce.com> In-Reply-To: <16394.51553.280751.990205@rosebud.alerce.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Should /nonexistent home dir actually exist? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2004 21:42:15 -0000 George Hartzell wrote: > I just noticed > > a) that several accounts (from ports stuff, it seems) on a -stable > system use /nonexistent as their home directory > > (ghost)[9:50am]log>>grep nonexist /etc/passwd > pop:*:68:6:Post Office Owner:/nonexistent:/sbin/nologin > www:*:80:80:World Wide Web Owner:/nonexistent:/sbin/nologin > nobody:*:65534:65534:Unprivileged user:/nonexistent:/sbin/nologin > gdm:*:92:92:GNOME Display Manager:/nonexistent:/sbin/nologin > dnslog:*:1002:1002:DJBdns Logger:/nonexistent:/sbin/nologin > dnscache:*:1003:1003:DJBdns Cache owner:/nonexistent:/sbin/nlogin > stunnel:*:1004:1004:stunnel Daemon:/nonexistent:/sbin/nologin > cyrus:*:60:60:the cyrus mail server:/nonexistent:/sbin/nologin > ldap:*:389:389:OpenLDAP Server:/nonexistent:/sbin/nologin > > and > > b) that it seems to exist.... > > (ghost)[9:50am]log>>ls -la /nonexistent/ > total 20 > drwxr-xr-x 2 ftp ftp 512 Jun 1 2003 . > drwxr-xr-x 20 root wheel 512 Jan 15 12:07 .. > -rw-r--r-- 1 dnslog dnslog 771 Jun 1 2003 .cshrc > -rw-r--r-- 1 dnslog dnslog 255 Jun 1 2003 .login > -rw-r--r-- 1 dnslog dnslog 165 Jun 1 2003 .login_conf > -rw------- 1 dnslog dnslog 371 Jun 1 2003 .mail_aliases > -rw-r--r-- 1 dnslog dnslog 331 Jun 1 2003 .mailrc > -rw-r--r-- 1 dnslog dnslog 801 Jun 1 2003 .profile > -rw------- 1 dnslog dnslog 276 Jun 1 2003 .rhosts > -rw-r--r-- 1 dnslog dnslog 852 Jun 1 2003 .shrc > > The name suggests that it shouldn't actually exist, presumably as a > security measure. > > Should I leave it as is, blow away the /nonexistent homedir, is it a > ports problem, or ??? /nonexistent is not supposed to exist. Perhaps you added the dnslog user using adduser(8) and so the home directory was created? Andrew