Re: [Server-devel] create_user and re-registration

2009-10-12 Thread Martin Langhoff
Now that makes more sense :-) m On Mon, Oct 12, 2009 at 10:53 AM, Daniel Drake wrote: > 2009/10/12 Martin Langhoff : >> So that's the issue. I think you sent the wrong patch. No awk line in >> the patch, at least that I can see... > > Odd, lets try again. > -- martin.langh...@gmail.com ma

Re: [Server-devel] create_user and re-registration

2009-10-12 Thread Daniel Drake
2009/10/12 Martin Langhoff : > So that's the issue. I think you sent the wrong patch. No awk line in > the patch, at least that I can see... Odd, lets try again. --- create_user.orig2009-10-12 12:36:44.0 +0545 +++ create_user 2009-10-12 12:36:44.0 +0545 @@ -99,6 +99,11 @@ mk

Re: [Server-devel] create_user and re-registration

2009-10-12 Thread Martin Langhoff
On Mon, Oct 12, 2009 at 10:25 AM, Daniel Drake wrote: > What does "sort -u" do? The man page doesn't make it very clear. Same as sort|uniq, but... > The awk command I inserted simply removes all lines from a file that > are a duplicate of another. Or at least I hope it does - I don't So that's

Re: [Server-devel] create_user and re-registration

2009-10-12 Thread Daniel Drake
2009/10/12 Martin Langhoff : > Hi Daniel, > > Reasonable request... I reviewed the patch, expecting you'd be running > `sort -u` over a tmp copy of authorized_keys, but it does nothing like > that. > > How does it help, then? What does "sort -u" do? The man page doesn't make it very clear. The aw

Re: [Server-devel] create_user and re-registration

2009-10-12 Thread Martin Langhoff
Hi Daniel, Reasonable request... I reviewed the patch, expecting you'd be running `sort -u` over a tmp copy of authorized_keys, but it does nothing like that. How does it help, then? cheers, m On Mon, Oct 12, 2009 at 9:04 AM, Daniel Drake wrote: > Hi, > > If an XO re-registers with the XS,

[Server-devel] create_user and re-registration

2009-10-12 Thread Daniel Drake
Hi, If an XO re-registers with the XS, its key is once again appended to .ssh/authorized_keys. Since introducing automatic registration in nepal we end up with many duplicate copies of the keys... any chance this small patch could be added? or that we could overwrite instead of append to the autho