From: Erik Johnson <palehose@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: LOGNAME not properly set on FreeBSD
Date: Tue, 1 Apr 2014 16:30:12 -0500 [thread overview]
Message-ID: <20140401213012.GF20508@gmail.com> (raw)
In-Reply-To: <20140401212239.GE20508@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
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 #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2014-04-01 21:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 21:22 Erik Johnson
2014-04-01 21:30 ` Erik Johnson [this message]
2014-04-02 0:27 ` Phil Pennock
2014-04-02 0:50 ` Erik Johnson
2014-04-02 20:54 ` Phil Pennock
2014-04-02 21:11 ` Erik Johnson
2014-04-02 9:23 ` Peter Stephenson
2014-04-02 19:06 ` Erik Johnson
2014-04-02 20:58 ` Peter Stephenson
2014-04-02 21:14 ` Erik Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140401213012.GF20508@gmail.com \
--to=palehose@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).