From mboxrd@z Thu Jan 1 00:00:00 1970 To: zsh-users@sunsite.dk From: Tim Kruse Subject: Re: su to root leaves me with the users history in zsh Date: Tue, 11 Apr 2006 09:20:59 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_TbNiAHA5tTR6.X__tFO3WJE; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Seq: zsh-users 10156 --Sig_TbNiAHA5tTR6.X__tFO3WJE Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable * On 10.04.2006 Angelina Carlton wrote: > If I type, as a user, su and login with the root password, then with eith= er > up arrow or ctrl-r the command history is 3976 items (max set to 5000) > but they are the *users* commands, not roots. There are some of roots > commands interspersed but those only seem to be from the last root sessio= n. > > su - gives me the correct 4819 commands that root has issued since the > machine was installed. ,-----[man su] | DESCRIPTION | su is used to become another user during a login session. Invoked = without | a username, su defaults to becoming the super user. The optional a= rgument | - may be used to provide an environment similar to what the user w= ould | expect had the user logged in directly. `----- > I thought something was wrong with my system when I first noticed this > but it also occurs on my Debian sarge server. I am not having much luck > with google so I am wondering if this is normal behaviour for zsh and > if so, how can I "fix" it? It's the normal behaviour of 'su'. You don't need to *fix* it. So long, tkr --=20 there is 150 meg in the /tmp dir! DEAR LORD --Sig_TbNiAHA5tTR6.X__tFO3WJE Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEO1jg1nqhlTkOjuwRAoj9AJ98hKi956UbjCpEKKtIc22PLTNmzACfTZC/ weandQVIX+vdl6bZztn1h3M= =8chD -----END PGP SIGNATURE----- --Sig_TbNiAHA5tTR6.X__tFO3WJE--