Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
LOGNAME not properly set on FreeBSD
- X-seq: zsh-workers 32514
- From: Erik Johnson <palehose@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: LOGNAME not properly set on FreeBSD
- Date: Tue, 1 Apr 2014 16:22:39 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=68Zc/BCMVhMnpEZVuE6dloJVeMbLxMDfJL/9Mn4xwCk=; b=zHXUlcgOYbdL300knNZzBFxfSy1DXaB3xfexpgzKxyCkxLUm2I6yCjICo3ELuJfoIn BVgdamVvcxlAzv2lcxcEDQfLkKYIj6IILv1myvqd4FIwII8Y243ghxkRF+TR+9715m5K c3ug0yf/5Zvb0yJ+d+V4odnw5KZpwWN7osM/kTYOCaSpS6iiZONzOtvboERWq8lZiD3U jSWjVjD5YFvtA3gisZyQi05DAE0sDw6BgzecSrpUU6K27ta7Oxy9X3GIj+0f1La8x906 G6QIusVuRFjQwrvsWgTg0TCLkRoMLgXNzQJlLVbtjI5wq3rUu8qbKB6tA3vjVL6xhQ42 3ntw==
- 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
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
--
-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:
pgp91RW20oVXM.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author