zsh-workers
 help / color / mirror / code / Atom feed
* LOGNAME not properly set on FreeBSD
@ 2014-04-01 21:22 Erik Johnson
  2014-04-01 21:30 ` Erik Johnson
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Erik Johnson @ 2014-04-01 21:22 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 703 bytes --]

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 #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-02 21:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-01 21:22 LOGNAME not properly set on FreeBSD Erik Johnson
2014-04-01 21:30 ` Erik Johnson
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

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).