How to set default to use Co:Z-SFTP

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Ulrich Schmidt
Posts: 37
Joined: Fri Jan 09, 2009 1:25 pm
Location: Germany

How to set default to use Co:Z-SFTP

Post by Ulrich Schmidt »

Hello,

I'd like to set up sshd to use Co:Z-SFTP by default. This means I should not be forced to copy 'sftp-server.rc' to the users homeDir.
I tried to put it to /etc/ssh and export USE_COZ_SFTP=true in /etc/profile. but this didn't help much. Right now it only works with having this file in the homedir.
But I don't like the idea to modify the sftp-server.sh - Me or a colleague of mine has to do this then every time we install a nre release of it.

Any suggestions?

brgds,
Ulrich Schmidt
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You can do this by creating a default installation profile script (with permissions 755) named /etc/ssh/sftp-server.rc

#! /bin/sh
# file: /etc/ssh/sftp-server.rc - Co:Z SFTP installation profile
USE_COZ_SFTP=true


For more information, you can look at the coz/bin/sftp-server.sh shell script for the details on how this works.
Post Reply