Hello..  I have built a chrooted sftp server using openssh4.3p2 with the sftplogging patch 1.5 and rssh 2.3.2 on Suse 10.1.  The server is functioning nearly as expected with one caveat, when applying the chrootpath in rssh.conf and rssh_chroot_helper calls the sftp-server process configuration information in sshd_config is not being applied.  Users can log in, transfer files and appear to be jailed correctly but I would like to make use of some configuration options in sshd_config: LogSftp, SftpUmask, SftpPermitChmod, SftpPermitChown.  I know its not just a logging issue as when chrooted I can chmod files successfully while when not chrooted chmod is prohibited.  Any thoughts?

Thanks,
-John

not chrooted:
Nov 24 10:37:02 sftp1 sshd[5773]: Accepted password for jtest from 172.19.1.2 port 3330 ssh2
Nov 24 10:37:02 sftp1 sshd[5775]: subsystem request for sftp
Nov 24 10:37:02 sftp1 rssh[5776]: setting log facility to LOG_USER
Nov 24 10:37:02 sftp1 rssh[5776]: allowing sftp to all users
Nov 24 10:37:02 sftp1 rssh[5776]: setting umask to 07
Nov 24 10:37:02 sftp1 sftp-server[5776]: Starting sftp-server logging for user jtest.
Nov 24 10:37:02 sftp1 sftp-server[5776]: umask control is on.
Nov 24 10:37:02 sftp1 sftp-server[5776]: client is not permitted to chmod.
Nov 24 10:37:02 sftp1 sftp-server[5776]: client is not permitted to chown.
Nov 24 10:37:02 sftp1 sftp-server[5776]: realpath .
Nov 24 10:37:10 sftp1 sftp-server[11368]: chmod /ftpdata/jtest/monst.jpg: operation prohibited by sftp-server configuration.
Nov 24 10:37:27 sftp1 sftp-server[5776]: sftp-server finished.
Nov 24 10:37:27 sftp1 sshd[5775]: Connection closed by 172.19.1.2


chrooted:
Nov 24 10:35:37 sftp1 sshd[5768]: Accepted password for jtest from 172.19.1.2 port 3322 ssh2
Nov 24 10:35:37 sftp1 sshd[5770]: subsystem request for sftp
Nov 24 10:35:37 sftp1 rssh[5771]: setting log facility to LOG_USER
Nov 24 10:35:37 sftp1 rssh[5771]: allowing sftp to all users
Nov 24 10:35:37 sftp1 rssh[5771]: setting umask to 07
Nov 24 10:35:37 sftp1 rssh[5771]: chrooting all users to /ftpdata
Nov 24 10:35:37 sftp1 rssh[5771]: chroot cmd line: /usr/local/libexec/rssh_chroot_helper 2 "/usr/lib/ssh/sftp-server"
Nov 24 10:36:03 sftp1 sshd[5770]: Connection closed by 172.19.1.2
Nov 24 10:36:03 sftp1 sshd[5770]: Closing connection to 172.19.1.2


rssh.conf
logfacility = LOG_USER
allowsftp
umask = 007
chrootpath = "/ftpdata"

rssh -v
rssh 2.3.2
Copyright 2002-5 Derek D. Martin <rssh-discuss at lists dot sourceforge dot net>

    rssh config file = /usr/local/etc/rssh.conf
  chroot helper path = /usr/local/libexec/rssh_chroot_helper
     scp binary path = /usr/bin/scp
  sftp server binary = /usr/lib/ssh/sftp-server
     cvs binary path = /usr/bin/cvs
   rdist binary path = /usr/bin/rdist
   rsync binary path = /usr/bin/rsync


sshd_config
SyslogFacility AUTH
LogLevel VERBOSE
PermitRootLogin no
StrictModes yes
PubkeyAuthentication yes
Subsystem       sftp    /usr/lib/ssh/sftp-server
SftpUmask 007
LogSftp   yes
SftpLogFacility AUTH
SftpLogLevel VERBOSE
SftpPermitChmod no
SftpPermitChown no


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to