Universal variables

Damien Miller djm at mindrot.org
Thu Jul 25 08:51:24 EST 2013


On Wed, 24 Jul 2013, shawn wilson wrote:

> Variables such as %u, %r, etc are only interpreted sometimes. Is there
> any reason they shouldn't always be expanded? Ie, if I want a config
> that I could send to many users, I might want to do:
> User %u123
> Thinking that I can derrive a the username from what they are using to
> login with. However, this doesn't work. So, I started wondering, It's
> probably harder to limit where these variables are used vs just
> allowing them universally

This isn't true. Every place where we want to expand a variable requires
at least three lines of code.

-d


More information about the openssh-unix-dev mailing list