Bug#95213: [Pkg-shadow-devel] Bug#95213: Passing env variables after the login name does not work

Tomasz Kłoczko Tomasz Kłoczko , 95213@bugs.debian.org
Wed, 6 Apr 2005 01:16:28 +0200 (CEST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--568760595-205078362-1112742895=:7917
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <Pine.LNX.4.61L.0504060115061.7917@boss.zie.pg.gda.pl>

On Tue, 5 Apr 2005, Nicolas [iso-8859-1] Fran=E7ois wrote:
[..]
> Can you also try:
> login root FOO=3DBAR

[root@v440 ~]# login root FOO=3DBAR
Password:
Not on system console
[root@v440 ~]#

After above there is no new shell.

> login "root FOO=3DBAR"

[root@v440 ~]# login "root FOO=3DBAR"
Password:
Login incorrect
login: root FOO=3DBAR
Password:
Not on system console

Does not work.

> login (and then specify root FOO=3DBAR after the prompt)

Seems this work only when logged from serial console=20
(so .. getty is used in this case).

> I'm asking this because I would like to see if the environments variables
> should be parsed by login or by getty.

After above experiments seems thi is getty feacture.

kloczek
--=20
-----------------------------------------------------------
*Ludzie nie maj=B1 problem=F3w, tylko sobie sami je stwarzaj=B1*
-----------------------------------------------------------
Tomasz K=B3oczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek@rudy.mif.pg.gda.p=
l*
--568760595-205078362-1112742895=:7917--