Re: AuthorizedKeysCommand run as the user

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Point AuthorizedKeysCommand to a script that runs your desired command
through sudo.  The connecting user's name is available in the first
argument.  Just make sure that sudo is configured to allow
AuthorizedKeysCommandUser to run the specified command as any user without
a password.

#!/bin/sh
sudo -u "$1" /path/to/command


On Fri, May 30, 2014 at 10:40 AM, Yves Dorfsman <yves@xxxxxxxxx> wrote:

>
> Is there any way to make the AuthorizedKeysCommand as the user which is
> trying to log in?
>
> Thanks.
>
> --
> Yves.
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev@xxxxxxxxxxx
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
>
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux