[PATCH] ssh-copy-id should do chmod go-w
mouring at etoh.eviladmin.org
mouring at etoh.eviladmin.org
Thu Oct 4 03:59:28 EST 2001
Technically should it not be 'chmod 600' just to ensure we have
all permissions right.
- Ben
On 27 Sep 2001, Matthew Vernon wrote:
> Hi,
>
> quick patch to ssh-copy-id to make it set the file modes more
> correctly.
>
> Thanks,
>
> Matthew
> --- contrib/ssh-copy-id.orig Thu Sep 27 21:47:44 2001
> +++ contrib/ssh-copy-id Thu Sep 27 21:47:52 2001
> @@ -33,7 +33,7 @@
> exit 1
> fi
>
> -{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >>
> .ssh/authori
> zed_keys ; chmod g-w . .ssh .ssh/authorized_keys"
> +{ eval "$GET_ID" ; } | ssh $1 "test -d .ssh || mkdir .ssh ; cat >>
> .ssh/authori
> zed_keys ; chmod go-w . .ssh .ssh/authorized_keys"
>
> cat <<EOF
> Now try logging into the machine, with "ssh '$1'", and check in:
>
> --
> "At least you know where you are with Microsoft."
> "True. I just wish I'd brought a paddle."
> http://www.debian.org
>
More information about the openssh-unix-dev
mailing list