On Friday 13 August 2004 19:48, Jens-D. Neppe wrote:
> Hello!
>
> Is there no configuration file automatically read by SSH I
> can put an alias entry into?
>
> Jens
"man" is your friend :-)
From ssh(1):
/etc/ssh/sshrc
Commands in this file are executed by ssh when the user logs in
just before the user's shell (or command) is started. See the
sshd(8) manual page for more information.
$HOME/.ssh/rc
Commands in this file are executed by ssh when the user logs in
just before the user's shell (or command) is started. See the
sshd(8) manual page for more information.
From sshd(8):
8. If $HOME/.ssh/rc exists, runs it; else if /etc/ssh/sshrc
exists, runs it; otherwise runs xauth. The ārcā files are
given the X11 authentication protocol and cookie in standard
input.
So you could create a /etc/ssh/sshrc or $HOME/.ssh/rc (the former is
systemwide and thus better suited) on the server which sets the umask. But
note that setting an alias propably won't work as setting the alias will
propably only be in effect WITHIN the rc file but as soon as that process
terminates the alias is gone again (this is a guess, though... correct me if
I'm wrong).
I guess this could also be mentioned in the SubVersion FAQ: using
/etc/ssh/sshrc seems to be a cleaner solution than wrapping svnserve with a
script (although wrapping guarantees that you'll get the correct umask under
all imaginable circumstances).
C'ya,
Marc
--
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 16 10:27:04 2004