cvs commit: ports/shells/scponly Makefile ports/shells/scponly/files scponlyc.in

Edwin Groothuis edwin at FreeBSD.org
Wed Oct 3 06:07:10 PDT 2007


edwin       2007-10-03 13:07:09 UTC

  FreeBSD ports repository

  Modified files:
    shells/scponly       Makefile 
  Added files:
    shells/scponly/files scponlyc.in 
  Log:
  scponlyc sftp support doesn't work without minimal devfs in chroot dir
  
          I'm finding that recently-created scponlyc chroots do not
          provide a sufficient environment for /usr/libexec/sftp-server
          to run. The sftp client symptom is just:
  
          $ sftp user at www
          Connecting to www...
          Password:
          Connection closed
          $
  
          The cause appears to be that recent versions of
          /usr/libexec/sftp-server will complain about of lack of
          access to /dev/null and exit, resulting in the closed
          connection witnessed by the remote client.
  
          The solution appears to be to create a devfs in the scponlyc
          chroot.
  
          To automatically create at boot time a devfs in the home
          directory of each user of scponlyc, I have chosen to put a
          script in /usr/local/etc/rc.d.
  
  PR:             ports/108009
  Submitted by:   Jim Long <list at museum.rain.com>
  Approved by:    maintainer timeout
  
  Revision  Changes    Path
  1.27      +10 -9     ports/shells/scponly/Makefile
  1.1       +56 -0     ports/shells/scponly/files/scponlyc.in (new)


More information about the cvs-ports mailing list