On Tue, 5 Apr 2005, Nicolas [iso-8859-1] François wrote: [..] > In fact, it (can) work: > > 21:35:49# login fzt FOO=BAR > Password: > Last login: Tue Apr 5 18:50:59 2005 on :0 > Linux nekral 2.4.27 #1 sam oct 9 16:13:52 CEST 2004 i686 GNU/Linux > You have mail. > [EMAIL PROTECTED]:~$ echo $FOO > BAR > > (Can you try it on Solaris?)
I'm wrote "login from Solaris do not have this kind abilities" only after reading Solaris login(1) man page text. But now .. v440 console login: root FOO=BAR Password: Last login: Sat Apr 2 09:29:02 from test1.zie.pg.gd Apr 5 22:15:17 v440 login: ROOT LOGIN /dev/console Sun Microsystems Inc. SunOS 5.10 Generic January 2005 [EMAIL PROTECTED] ~]# echo $FOO BAR Hmm .. seems woks ;> > It depends on the args login receives (it doesn't work with: > login "fzt FOO=BAR"). > When login is started without any argument (when it prints a "login:" > prompt), the text entered by the user is just taken as a user name, no env > can be provided. > > > The same thing happen when login is invoked by getty (getty prints the > prompt, and then invoke login with the username in argument). > > This could be solved by login or getty by splitting the text entered by > the user on spaces (this may be much more complex because of quotes...). > > I don't think this functionality is really useful, so maybe it is not > worth doing something else than updating the man page (it should indicate > that it only woks when the variables are indicated on the command line, as > in the synopsis). I plan transform shadow to fully Solaris compliant form (I'm wrote about this more than week ago on Debian shadow list and [EMAIL PROTECTED] list). So .. consequence this will be also implement this kind functionality. For now remove one paragrap from man login pages is for keep true description of currently abvalaible things implemented in shadow login. This can be reverted after implemting above behavior. kloczek -- ----------------------------------------------------------- *Ludzie nie mają problemów, tylko sobie sami je stwarzają* ----------------------------------------------------------- Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: [EMAIL PROTECTED]

