Jeff Bailey <[EMAIL PROTECTED]> writes:

> what I'm proposing is a hack of lsh-authorize that takes a -u argument 
> for a username.  It should be an easy enough hack of the shell script and 
> will save me much grief.  

Do I understand you correctly that the option will be quite useless
unless you're running as root?

Assuming the public key to be authorized is already readable by the
user in question, it occurs to me that

  lsh-authorize -u user key

would be more or less equivalent to

  su user lsh-authorize key

(this depends on su setting HOME correctly. BTW, what is the right way
for a shell script to look up a user's home directory? Not all systems
use /home/user for all accounts).

> Will you accept it?

Sure; if it makes lsh-authorize more convenient for you, hack away and
send it to me or to the list.

/Niels

Reply via email to