[scponly] scponly 3.9: @PROG_RM@ issue

Hideyuki KURASHINA rushani at bl.mmtr.or.jp
Tue Mar 16 13:10:31 EST 2004


Hi,

When I set up chroot env (running `configure' script with
--enable-chrooted-binary) on FreeBSD, generated `setup_chroot.sh'
fails removing $targetdir/etc/master.passwd and $targetdir/etc/spwd.db
as follows:

  > # sh setup_chroot.sh
  > 
  > Next we need to set the home directory for this scponly user.
  > please note that the user's home directory MUST NOT be writeable
  > by the scponly user. this is important so that the scponly user
  > cannot subvert the .ssh configuration parameters.
  > 
  > for this reason, a writeable subdirectory will be created that
  > the scponly user can write into.
  > 
  > -en Username to install [scponly]
  > 
  > -en home directory you wish to set for this user [/home/scponly]
  >      
  > -en name of the writeable subdirectory [incoming]
  > 
  > 
  > creating  /home/scponly/incoming directory for uploading files
  > 
  > Your platform (FreeBSD) does not have a platform specific setup script.
  > This install script will attempt a best guess.
  > If you perform customizations, please consider sending me your changes.
  > Look to the templates in build_extras/arch.
  >  - joe at sublimation dot org
  > 
  > @PROG_RM@: not found
    ^^^^^^^^^^^^^^^^^^^^ Here
  > please set the password for scponly:
  > Changing local password for scponly
  > New Password:
  > Retype New Password:
  > if you experience a warning with winscp regarding groups, please install
  > the provided hacked out fake groups program into your chroot, like so:
  > cp groups /home/scponly/bin/groups

I thinks this is due to lack of definition of PROG_RM in `configure.in'
(in version 3.8, /bin/rm was used).

Joe, could please include following patch and re-generate `configure'
script?

-- rushani

--- configure.in.orig	Wed Mar 17 02:11:09 2004
+++ configure.in	Wed Mar 17 02:11:24 2004
@@ -51,6 +51,7 @@
 AC_PATH_PROG(PROG_ID, id)
 AC_PATH_PROG(PROG_PW, pw)
 AC_PATH_PROG(PROG_PWD_MKDB, pwd_mkdb)
+AC_PATH_PROG(PROG_RM, rm)
 
 dnl Features wanted for this installation:
 dnl Command-line args to ./configure



More information about the scponly mailing list