From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23070 invoked from network); 24 Oct 2005 22:41:45 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Oct 2005 22:41:45 -0000 Received: (qmail 39951 invoked from network); 24 Oct 2005 22:41:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Oct 2005 22:41:38 -0000 Received: (qmail 25680 invoked by alias); 24 Oct 2005 22:41:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9553 Received: (qmail 25670 invoked from network); 24 Oct 2005 22:41:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Oct 2005 22:41:30 -0000 Received: (qmail 38985 invoked from network); 24 Oct 2005 22:41:30 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 24 Oct 2005 22:41:27 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EUAyf-0004tz-Bv for zsh-users@sunsite.dk; Tue, 25 Oct 2005 00:39:37 +0200 Received: from hippo.e-hippo.net ([216.182.10.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Oct 2005 00:39:37 +0200 Received: from ljz by hippo.e-hippo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Oct 2005 00:39:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Lloyd Zusman Subject: Re: Named directory pointing to a symbolic link Date: Mon, 24 Oct 2005 18:36:17 -0400 Message-ID: References: <1051024144857.ZM19579@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hippo.e-hippo.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:Ot6n7WzA4eF86nGdBGP2iBFVSbw= Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Bart Schaefer writes: > On Oct 24, 1:04pm, Jean Chalard wrote: > } > } I've run into a behaviour I wasn't expecting with named directories on > } FreeBSD. [...] > } > } It seems to me like the 'www' variable (which ought to be unset when I > } start the shell, it's not like it should be a special variable [...] > } > } I can reproduce it on another FreeBSD where zsh is installed the > } vanilla way and where I don't have any configuration files. > > The most obvious answer is that there really is a user named "www"; > perhaps the dummy user that runs the apache httpd or some such. Have > you tried > grep www /etc/passwd > ?? This is almost certainly what's going on in your case, Jean. On my FreeBSD host, the default configuration for user ID's with no HOME directory is to have the string "/nonexistent" in the "home_dir" field of /etc/passwd. For no login shell, the string "/nonexistent" goes into the "shell" field. To wit: % grep /nonexistent /etcpasswd ftp:*:14:5:Anonymous FTP Admin:/home/services/ftp:/nonexistent pop:*:68:6:Post Office Owner:/nonexistent:/sbin/nologin nobody:*:65534:65534:Unprivileged user:/nonexistent:/sbin/nologin I wouldn't be surprised if the "www" user also has a "/nonexistent" HOME in the default FreeBSD setup (I had manually changed my "www" user ages ago). -- Lloyd Zusman ljz@asfast.com God bless you.