zsh-workers
 help / color / mirror / code / Atom feed
From: Richard Coleman <coleman@math.gatech.edu>
To: zsh-workers@math.gatech.edu
Subject: Re: USERNAME bug zsh-2.6-beta9
Date: Fri, 30 Jun 1995 17:55:25 -0400	[thread overview]
Message-ID: <9506302155.AA05049@redwood.skiles.gatech.edu> (raw)
In-Reply-To: Your message of "Fri, 30 Jun 1995 19:20:54 BST." <9506301721.AA13999@turan.elte.hu>

> > "%n" should show the username of the uid running the shell in my opinion as
> > that's what current privileges are in effect.  I guess this qualifies as a
> > minor change from the way it's documented, and it was just "wrong" for so
> > long I got used to it showing name of current uid.  Which beta release did
> > that actually get "fixed"...about b7?
> 
> I think it only came in in beta9. It happend when init.c started using
> getlogin(). It used that well before beta9, but an other bug prevented it
> working.

This is changed in beta10.  USERNAME always comes from pswd->pw_name
now.  Also USERNAME is now magical so that if you are root, executing

USERNAME=username

will change the username and uid the shell is executing under.  Also,
as root, you can execute command under other usernames/uid by

USERNAME=nobody command.

I'm putting the finishing touches on beta10.  There have been a lot of
internal changes and code reorganization.

rc


      reply	other threads:[~1995-06-30 21:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-30 15:10 Paul H. Becker
1995-06-30 15:20 ` Philip Kizer
1995-06-30 16:41   ` Bart Schaefer
1995-06-30 17:10     ` Philip Kizer
1995-06-30 18:20       ` Zoltan Hidvegi
1995-06-30 21:55         ` Richard Coleman [this message]

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=9506302155.AA05049@redwood.skiles.gatech.edu \
    --to=coleman@math.gatech.edu \
    --cc=zsh-workers@math.gatech.edu \
    /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).