[talk] scp umask headbanging

Jan Schaumann jschauma at netmeister.org
Mon Oct 5 21:52:49 EDT 2015


"Isaac (.ike) Levy" <ike at blackskyresearch.net> wrote:

> Now, scp.  The outlier.

Random guess: scp(1) does not start an interactive shell, so no login
defaults are applied.  pam_umask might work.

Horrible alternative: an ssh ForceCommand wrapper like

#! /bin/sh
umask 002
exec /bin/sh -c "${SSH_ORIGINAL_COMMAND:-$SHELL}"

?

-Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 478 bytes
Desc: not available
URL: <http://lists.nycbug.org/pipermail/talk/attachments/20151005/ebb7ad9c/attachment.bin>


More information about the talk mailing list