zsh-users
 help / color / mirror / code / Atom feed
* RE: 3.1.4 and su
@ 1998-09-16  5:59 jalexand
  1998-09-16  8:46 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: jalexand @ 1998-09-16  5:59 UTC (permalink / raw)
  To: Zoltan Hidvegi; +Cc: zsh-users

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@wlgore.com>

Zoltan Hidvegi <hzoli@cs.elte.hu> 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@wlgore.com      ||      than that!


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

* Re: 3.1.4 and su
  1998-09-16  5:59 3.1.4 and su jalexand
@ 1998-09-16  8:46 ` Peter Stephenson
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Stephenson @ 1998-09-16  8:46 UTC (permalink / raw)
  To: Zsh users list

jalexand@wlgore.com wrote:
> 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])

The time formats in the prompts are now strftime(3) compatible, so the
strftime sequence %l gives you the space to keep the string length
constant.  %L was added to give you the old behaviour.  See PROMPT
EXPANSION in the zshmisc manual page.  Try changing the appropriate
part of your prompt to %D{%L:%M%p} for 3.1.4.

-- 
Peter Stephenson <pws@ifh.de>       Tel: +39 50 844536
WWW:  http://www.ifh.de/~pws/
Gruppo Teorico, Dipartimento di Fisica
Piazza Torricelli 2, 56100 Pisa, Italy


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

* Re: 3.1.4 and su
  1998-09-16  2:56 ` Bart Schaefer
@ 1998-09-16  5:04   ` Zoltan Hidvegi
  0 siblings, 0 replies; 5+ messages in thread
From: Zoltan Hidvegi @ 1998-09-16  5:04 UTC (permalink / raw)
  To: zsh-users

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

Zoli


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

* Re: 3.1.4 and su
  1998-09-15 21:13 Jerry Alexandratos
@ 1998-09-16  2:56 ` Bart Schaefer
  1998-09-16  5:04   ` Zoltan Hidvegi
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 1998-09-16  2:56 UTC (permalink / raw)
  To: darkstar, zsh-users

On Sep 15,  5:13pm, Jerry Alexandratos wrote:
} Subject: 3.1.4 and su
}
} I've been using 3.1.4 for a while now, and I'm finally getting around to
} asking this question.
} 
} When I do a "su -m" my environment isn't kept.  Of course this isn't a
} problem under 3.0.5.

Depending on how you installed 3.1.4, it could be the case that your
$SHELL is not listed in /etc/shells.  That affects behavior of su -m.

It's also possible that the environment isn't kept under 3.0.5 either,
but that your init files are being sourced at startup of su -m in 3.0.5
yet are not sourced in 3.1.4.

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.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


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

* 3.1.4 and su
@ 1998-09-15 21:13 Jerry Alexandratos
  1998-09-16  2:56 ` Bart Schaefer
  0 siblings, 1 reply; 5+ messages in thread
From: Jerry Alexandratos @ 1998-09-15 21:13 UTC (permalink / raw)
  To: zsh-users

I've been using 3.1.4 for a while now, and I'm finally getting around to
asking this question.

When I do a "su -m" my environment isn't kept.  Of course this isn't a
problem under 3.0.5.

I'm running this on FreeBSD-current (3.0) on a P5-150.

Thanks in advance...

        --Jerry

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@wlgore.com      ||      than that!


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

end of thread, other threads:[~1998-09-16  8:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-16  5:59 3.1.4 and su jalexand
1998-09-16  8:46 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1998-09-15 21:13 Jerry Alexandratos
1998-09-16  2:56 ` Bart Schaefer
1998-09-16  5:04   ` Zoltan Hidvegi

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