[rancid] Can clogin prompt for a password?
heas at shrubbery.net
Thu Aug 4 21:27:17 UTC 2016
Thu, Aug 04, 2016 at 10:35:11AM -0500, Brandon Ewing:
> On Thu, Aug 04, 2016 at 03:27:53PM +0000, heasley wrote:
> > Not exactly, but you could wrap it in shell that prompts then executes
> > *login -p $passwd
> > unfortunately, that will appear in ps(1). you could also use include
> > in the .cloginrc to include a file that the shell wrapper creates during
> > runtime.
> > its not impossible to add such a feature though; it just doesnt exist now.
> > of course, if you can not trust those with root ....
> Hrm, I kind of like this approach -- environment variable passing into
> command line. Would it be feasible to reset $0 in *login to mask the passed
> in password in a process listing?
it may be; i have not tried it. Note however that even doing that would
leave a race, between start-up and squashing the argv index.
More information about the Rancid-discuss