Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: 3.1.4 and su



In Reply to Your Message of Wed, 16 Sep 1998 00: 04:18 CDT
Date: Wed, 16 Sep 1998 01:59:37 -0400
From: Jerry Alexandratos <jalexand@xxxxxxxxxx>

Zoltan Hidvegi <hzoli@xxxxxxxxxx> says:
: > 3.1.4 automatically puts itself in "priveleged" state when UID and EUID
: > are not equivalent.  That causes it to skip sourcing $HOME/.zshrc et. al.
: > 3.0.5 has no notion of "priveleged" and always sources the init files.
: 
: 3.0.5 does have privileged mode, and it does skip user startup files when
: UID != EUID.  Perhaps you confused this with restricted mode, which is
: new in 3.1.x.

I've checked these options.  Here's some output as myself:

   nomad[ 1:47AM] setopt
   autopushd
   nobeep
   noclobber
   histignoredups
   interactive
   interactivecomments
   monitor
   rmstarsilent
   shinstdin
   zle

   nomad[ 1:47AM] echo $UID $EUID $GID $EGID
   1000 1000 1000 1000

and now when I'm su'd:

   # setopt
   interactive
   monitor
   shinstdin
   zle

   # echo $UID $EUID $GID $EGID
   0 0 0 0

and when I'm su'd and I source ~/.zshrc:

   nomad# setopt
   autopushd
   nobeep
   noclobber
   histignoredups
   interactive
   interactivecomments
   monitor
   rmstarsilent
   shinstdin
   zle

   nomad# echo $UID $EUID $GID $EGID
   0 0 0 0

So I don't think it's a matter of priveleged or restricted options.  8(
And as I said earlier, this is the same .zshrc I was using for 3.0.5

Yeah, it's got me boggled too.

        --Jerry

ps-While I'm at it, why does the time in the prompt have a space in it
now?  (eg 3.1.4 => [ 1:47AM] while 3.0.5 => [1:47AM])


name:  Jerry Alexandratos       ||      Open-Source software isn't a
phone: 410.506.7544             ||      matter of life or death...
pager: 63246                    ||      ...It's much more important
email: jalexand@xxxxxxxxxx      ||      than that!



Messages sorted by: Reverse Date, Date, Thread, Author