[scponly] Environment variables

Ryan J Ollos ryno at apl.washington.edu
Wed May 23 00:02:29 EDT 2007


I'm sure this has been posted before, but I'm not having much luck searching
the archives.
 
I have compiled scponly as follows:
 
> ./configure --disable-gftp-compat --enable-sftp-logging-compat
--enable-passwd-compat
> make
> make install
 
Then I set the debugging level to 2.  The log messages are below, and I have
only edited them to remove the username and IP address, replacing these with
XXXXXXX.

May 22 20:32:13 XXXXXXX sshd[9065]: Accepted password for XXXXXXX from
::ffff:XXX.XXX.XXX.XXX port 2936 ssh2
May 22 20:32:13 XXXXXXX sshd[9067]: subsystem request for sftp
May 22 20:32:13 XXXXXXX scponly[9068]: 3 arguments in total.
May 22 20:32:13 XXXXXXX scponly[9068]:    arg 0 is scponly
May 22 20:32:13 XXXXXXX scponly[9068]:    arg 1 is -c
May 22 20:32:13 XXXXXXX scponly[9068]:    arg 2 is
/usr/libexec/openssh/sftp-server
May 22 20:32:13 XXXXXXX scponly[9068]: opened log at LOG_AUTHPRIV, opts
0x00000029
May 22 20:32:13 XXXXXXX scponly[9068]: retrieved home directory of
"/data/nicp" for user "XXXXXXX"
May 22 20:32:13 XXXXXXX scponly[9068]: setting uid to 102
May 22 20:32:13 XXXXXXX scponly[9068]: processing request:
"/usr/libexec/openssh/sftp-server"
May 22 20:32:13 XXXXXXX scponly[9068]: Unable to find "LOG_SFTP" in the
environment
May 22 20:32:13 XXXXXXX scponly[9068]: Found "USER" and setting it to
"XXXXXXX"
May 22 20:32:13 XXXXXXX scponly[9068]: Unable to find "SFTP_UMASK" in the
environment
May 22 20:32:13 XXXXXXX scponly[9068]: Unable to find "SFTP_PERMIT_CHMOD" in
the environment
May 22 20:32:13 XXXXXXX scponly[9068]: Unable to find "SFTP_PERMIT_CHOWN" in
the environment
May 22 20:32:13 XXXXXXX scponly[9068]: Unable to find "SFTP_LOG_LEVEL" in
the environment
May 22 20:32:13 XXXXXXX scponly[9068]: Unable to find "SFTP_LOG_FACILITY" in
the environment
May 22 20:32:13 XXXXXXX scponly[9068]: Environment contains "USER=XXXXXXX"
May 22 20:32:13 XXXXXXX scponly[9068]: running:
/usr/libexec/openssh/sftp-server (username: XXXXXXX (102), IP/port:
::ffff:XXX.XXX.XXX.XXX 2936 22)

 My question is ... how do I set the environment variables: SFTP_UMASK,
SFTP_PERMIT_CHMOD, SFTP_PERMIT_CHOWN, SFTP_LOG_LEVEL, and SFTP_LOG_FACILITY?

According to what I have read online, it appears that the only way to set
these is to recompile OpenSSH after applying a patch ... but I'm not even
sure how to set the variables after doing that.
http://sftplogging.sourceforge.net/

Thanks!

- Ryan

 
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the scponly mailing list