[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssh-bugs
Subject:    [Bug 1158] Setting the environment in authorized_keys does not work
From:       bugzilla-daemon () mindrot ! org
Date:       2006-02-15 22:08:18
Message-ID: 20060215220818.32D8C17E635 () mail ! mindrot ! org
[Download RAW message or body]

http://bugzilla.mindrot.org/show_bug.cgi?id=1158


michael.henry@axegroup.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from michael.henry@axegroup.com.au  2006-02-16 09:08 -------

Thanks for the prompt reply Darren!

I do have: PermitUserEnvironment yes

You make a very good point about login scripts setting the LOGNAME variable.
Let me just check...

Ha! /etc/profile has: LOGNAME=$USER

Now for the final point - multiple "environment" entries. I see you have a
comma-separated list. As per the man-page I was using spaces to separate my
entries: "Each RSA public key consists of the following fields, separated by
spaces: options, bits, exponent, modulus, comment."

So I had:

environment="LOGNAME=mhenry" environment="CVSUSER=mhenry" ssh-dss AAAAB3N....

Let me just change that space to a comma... WooHoo! That's done it!

Thanks for your help!




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
http://www.mindrot.org/mailman/listinfo/openssh-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic