Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: LOGNAME not properly set on FreeBSD
- X-seq: zsh-workers 32515
- From: Erik Johnson <palehose@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: LOGNAME not properly set on FreeBSD
- Date: Tue, 1 Apr 2014 16:30:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=2aBymxesbki1pXagd20eC93Y46jCbJcUJvBU8OyAZVU=; b=HRkgDEg8aIoRBcdiH5V2FXv5YTvZqTytMQJicqvpwiCYiyhWqJxZDAOGpZH5nF5E11 HOx25O2GGX1xil1OQ9X4ygsueYujcPmKj9HJ3r363obdaxbULv+zfndmQ7rnvLC5ZQif CvEIZeMNwfNF29iijr0zwC7bIi0QYuSUMZhij0BCfdZOwVmb6tPH3YSWb7/VZHhLqr2t TvZz2jxunT+XK5epcrcn+g99LAzeNMbjs2XhBqXNuANHdWtVmL07pt3o17Eiffn8dmjy odbEPHokOVqe/64762q2hOHHZDDDAPYiEmxK0olkCuLxcL0R3Z+izbV5CvQ0EJjca8Z6 ycYQ==
- In-reply-to: <20140401212239.GE20508@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20140401212239.GE20508@gmail.com>
On Tue, Apr 01, 2014 at 04:22:39PM -0500, Erik Johnson wrote:
When using "su - username" to change users, zsh is not properly setting
the LOGNAME environment variable on FreeBSD. Example below.
erik@virtubsd:~% zsh --version
zsh 5.0.2 (amd64-portbld-freebsd9.1)
erik@virtubsd:~% su - root
Password:
virtubsd# echo $LOGNAME
erik
virtubsd# cat .zshrc
cat: .zshrc: No such file or directory
virtubsd# logout
erik@virtubsd:~% sudo chpass -s /bin/csh root
Password:
chpass: user information updated
erik@virtubsd:~% su - root
Password:
virtubsd# echo $LOGNAME
root
virtubsd# logout
I just built and installed 5.0.5, and the issue persists there as well.
--
-Erik
"For me, it is far better to grasp the universe as it really is than to
persist in delusion, however satisfying and reassuring." --Carl Sagan
Attachment:
pgp1SeszFqiKC.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author