[scponly] scponly 4.6 install blues

Stuart Green stuart at sjgdigital.com
Sun Mar 26 17:25:37 EST 2006


Have managed to progress this a bit.....

Using:

   setenv WITH_SCPONLY_CHROOT yes

Before

   make install

I managed to get scponlyc to install.

However, I can't get a login through SFTP.

Looking at the other threads running on the list, I tried

   ldconfig -v -r /home/testuser

which gives:

/var/run/ld-elf.so.hints:
         search directories: /usr/lib:/usr/lib/compat:/usr/X11R6/lib:/ 
usr/local/lib:/usr/local/lib/compat:/usr/local/lib/mysql:/usr/local/ 
lib/compat/pkg
         0:-ldes.3 => /usr/lib/libdes.so.3
         1:-lalias.4 => /usr/lib/libalias.so.4
         2:-latm.2 => /usr/lib/libatm.so.2
         3:-lbz2.1 => /usr/lib/libbz2.so.1
         4:-lc.4 => /usr/lib/libc.so.4
         5:-lc_r.4 => /usr/lib/libc_r.so.4
         6:-lcalendar.2 => /usr/lib/libcalendar.so.2
         7:-lcam.2 => /usr/lib/libcam.so.2
         8:-lcipher.2 => /usr/lib/libcipher.so.2
         9:-lcom_err.2 => /usr/lib/libcom_err.so.2
         10:-lcrypt.2 => /usr/lib/libcrypt.so.2
         11:-ldevstat.2 => /usr/lib/libdevstat.so.2
         12:-ldialog.4 => /usr/lib/libdialog.so.4
         13:-ledit.3 => /usr/lib/libedit.so.3
         14:-lfetch.3 => /usr/lib/libfetch.so.3
         15:-lform.2 => /usr/lib/libform.so.2
         16:-lftpio.5 => /usr/lib/libftpio.so.5
         17:-lcrypto.3 => /usr/lib/libcrypto.so.3
         18:-lg2c.1 => /usr/lib/libg2c.so.1
         19:-lgmp.3 => /usr/lib/libgmp.so.3
         20:-lgnuregex.2 => /usr/lib/libgnuregex.so.2
         21:-lhistory.4 => /usr/lib/libhistory.so.4
         22:-lipsec.1 => /usr/lib/libipsec.so.1
         23:-lipx.2 => /usr/lib/libipx.so.2
         24:-lisc.1 => /usr/lib/libisc.so.1
         25:-lkvm.2 => /usr/lib/libkvm.so.2
         26:-lm.2 => /usr/lib/libm.so.2
         27:-lmd.2 => /usr/lib/libmd.so.2
         28:-lmenu.2 => /usr/lib/libmenu.so.2
         29:-lmilter.3 => /usr/lib/libmilter.so.3
         30:-lmp.3 => /usr/lib/libmp.so.3
         31:-lncp.1 => /usr/lib/libncp.so.1
         32:-lncurses.5 => /usr/lib/libncurses.so.5
         33:-lnetgraph.1 => /usr/lib/libnetgraph.so.1
         34:-lopie.2 => /usr/lib/libopie.so.2
         35:-lpam.1 => /usr/lib/libpam.so.1
         36:-lpanel.2 => /usr/lib/libpanel.so.2
         37:-lpcap.2 => /usr/lib/libpcap.so.2
         38:-lperl.3 => /usr/lib/libperl.so.3
         39:-lposix1e.2 => /usr/lib/libposix1e.so.2
         40:-lradius.1 => /usr/lib/libradius.so.1
         41:-lreadline.4 => /usr/lib/libreadline.so.4
         42:-lrpcsvc.2 => /usr/lib/librpcsvc.so.2
         43:-lskey.2 => /usr/lib/libskey.so.2
         44:-lsmb.1 => /usr/lib/libsmb.so.1
         45:-lstdc++.3 => /usr/lib/libstdc++.so.3
         46:-ltacplus.1 => /usr/lib/libtacplus.so.1
         47:-lusbhid.0 => /usr/lib/libusbhid.so.0
         48:-lutil.3 => /usr/lib/libutil.so.3
         49:-lvgl.2 => /usr/lib/libvgl.so.2
         50:-lwrap.3 => /usr/lib/libwrap.so.3
         51:-lxpg4.3 => /usr/lib/libxpg4.so.3
         52:-lz.2 => /usr/lib/libz.so.2
         53:-lssh.2 => /usr/lib/libssh.so.2
         54:-lssl.3 => /usr/lib/libssl.so.3
         55:-lreadline.3 => /usr/lib/compat/libreadline.so.3
         56:-lalias.3 => /usr/lib/compat/libalias.so.3
         57:-lc.3 => /usr/lib/compat/libc.so.3
         58:-lc_r.3 => /usr/lib/compat/libc_r.so.3
         59:-lcrypto.1 => /usr/lib/compat/libcrypto.so.1
         60:-lcurses.2 => /usr/lib/compat/libcurses.so.2
         61:-ldialog.3 => /usr/lib/compat/libdialog.so.3
         62:-ledit.2 => /usr/lib/compat/libedit.so.2
         63:-lf2c.2 => /usr/lib/compat/libf2c.so.2
         64:-lfetch.1 => /usr/lib/compat/libfetch.so.1
         65:-lfetch.2 => /usr/lib/compat/libfetch.so.2
         66:-lftpio.4 => /usr/lib/compat/libftpio.so.4
         67:-lg++.4 => /usr/lib/compat/libg++.so.4
         68:-lhistory.3 => /usr/lib/compat/libhistory.so.3
         69:-lmytinfo.2 => /usr/lib/compat/libmytinfo.so.2
         70:-lncurses.3 => /usr/lib/compat/libncurses.so.3
         71:-lss.2 => /usr/lib/compat/libss.so.2
         72:-lssl.1 => /usr/lib/compat/libssl.so.1
         73:-lstdc++.2 => /usr/lib/compat/libstdc++.so.2
         74:-ltermcap.2 => /usr/lib/compat/libtermcap.so.2
         75:-lutil.2 => /usr/lib/compat/libutil.so.2
         76:-lvgl.1 => /usr/lib/compat/libvgl.so.1
         77:-lwrap.2 => /usr/lib/compat/libwrap.so.2
         78:-lxpg4.2 => /usr/lib/compat/libxpg4.so.2
         79:-lcrypto.2 => /usr/lib/compat/libcrypto.so.2
         80:-lmilter.2 => /usr/lib/compat/libmilter.so.2
         81:-lssl.2 => /usr/lib/compat/libssl.so.2
         82:-lGL.1 => /usr/X11R6/lib/libGL.so.1
         83:-lGLU.1 => /usr/X11R6/lib/libGLU.so.1
         84:-lICE.6 => /usr/X11R6/lib/libICE.so.6
         85:-lOSMesa.4 => /usr/X11R6/lib/libOSMesa.so.4
         86:-lXThrStub.6 => /usr/X11R6/lib/libXThrStub.so.6
         87:-lSM.6 => /usr/X11R6/lib/libSM.so.6
         88:-lX11.6 => /usr/X11R6/lib/libX11.so.6
         89:-lFS.6 => /usr/X11R6/lib/libFS.so.6
         90:-lXTrap.6 => /usr/X11R6/lib/libXTrap.so.6
         91:-lXaw2d.6 => /usr/X11R6/lib/libXaw2d.so.6
         92:-lXaw.7 => /usr/X11R6/lib/libXaw.so.7
         93:-lXaw3d.7 => /usr/X11R6/lib/libXaw3d.so.7
         94:-lXext.6 => /usr/X11R6/lib/libXext.so.6
         95:-lXfont.1 => /usr/X11R6/lib/libXfont.so.1
         96:-ldps.1 => /usr/X11R6/lib/libdps.so.1
         97:-lXi.6 => /usr/X11R6/lib/libXi.so.6
         98:-lXmu.6 => /usr/X11R6/lib/libXmu.so.6
         99:-lXmuu.1 => /usr/X11R6/lib/libXmuu.so.1
         100:-lXp.6 => /usr/X11R6/lib/libXp.so.6
         101:-lXpm.4 => /usr/X11R6/lib/libXpm.so.4
         102:-lXrender.1 => /usr/X11R6/lib/libXrender.so.1
         103:-lXt.6 => /usr/X11R6/lib/libXt.so.6
         104:-lXtst.6 => /usr/X11R6/lib/libXtst.so.6
         105:-ldpstk.1 => /usr/X11R6/lib/libdpstk.so.1
         106:-loldX.6 => /usr/X11R6/lib/liboldX.so.6
         107:-lpsres.1 => /usr/X11R6/lib/libpsres.so.1
         108:-lGLw.1 => /usr/X11R6/lib/libGLw.so.1
         109:-lXRes.1 => /usr/X11R6/lib/libXRes.so.1
         110:-lXau.0 => /usr/X11R6/lib/libXau.so.0
         111:-lXfontcache.1 => /usr/X11R6/lib/libXfontcache.so.1
         112:-lXaw.6 => /usr/X11R6/lib/libXaw.so.6
         113:-lXaw3d.6 => /usr/X11R6/lib/libXaw3d.so.6
         114:-lXcursor.1 => /usr/X11R6/lib/libXcursor.so.1
         115:-lXft.2 => /usr/X11R6/lib/libXft.so.2
         116:-lXinerama.1 => /usr/X11R6/lib/libXinerama.so.1
         117:-lXrandr.2 => /usr/X11R6/lib/libXrandr.so.2
         118:-lXss.1 => /usr/X11R6/lib/libXss.so.1
         119:-lXv.1 => /usr/X11R6/lib/libXv.so.1
         120:-lXvMC.1 => /usr/X11R6/lib/libXvMC.so.1
         121:-lXxf86dga.1 => /usr/X11R6/lib/libXxf86dga.so.1
         122:-lXxf86misc.1 => /usr/X11R6/lib/libXxf86misc.so.1
         123:-lXxf86vm.1 => /usr/X11R6/lib/libXxf86vm.so.1
         124:-lfontconfig.1 => /usr/X11R6/lib/libfontconfig.so.1
         125:-lfontenc.1 => /usr/X11R6/lib/libfontenc.so.1
         126:-lxkbfile.1 => /usr/X11R6/lib/libxkbfile.so.1
         127:-lxkbui.1 => /usr/X11R6/lib/libxkbui.so.1
         128:-ldmx.1 => /usr/X11R6/lib/libdmx.so.1
         129:-lc-client4.8 => /usr/local/lib/libc-client4.so.8
         130:-lStrn.1 => /usr/local/lib/libStrn.so.1
         131:-lfreetype.9 => /usr/local/lib/libfreetype.so.9
         132:-lcharset.1 => /usr/local/lib/libcharset.so.1
         133:-ldb3.3 => /usr/local/lib/libdb3.so.3
         134:-ldb3_cxx.3 => /usr/local/lib/libdb3_cxx.so.3
         135:-lgd.4 => /usr/local/lib/libgd.so.4
         136:-lgdbm.3 => /usr/local/lib/libgdbm.so.3
         137:-liconv.3 => /usr/local/lib/libiconv.so.3
         138:-ljpeg.9 => /usr/local/lib/libjpeg.so.9
         139:-lltdl.1 => /usr/local/lib/libltdl.so.1
         140:-lmcrypt.8 => /usr/local/lib/libmcrypt.so.8
         141:-lmhash.2 => /usr/local/lib/libmhash.so.2
         142:-lpq.2 => /usr/local/lib/libpq.so.2
         143:-lncftp.2 => /usr/local/lib/libncftp.so.2
         144:-lpcre.0 => /usr/local/lib/libpcre.so.0
         145:-lpcreposix.0 => /usr/local/lib/libpcreposix.so.0
         146:-lpng.5 => /usr/local/lib/libpng.so.5
         147:-lpopt.0 => /usr/local/lib/libpopt.so.0
         148:-lsasl2.2 => /usr/local/lib/libsasl2.so.2
         149:-ltiff.4 => /usr/local/lib/libtiff.so.4
         150:-lsio.5 => /usr/local/lib/libsio.so.5
         151:-lt1.4 => /usr/local/lib/libt1.so.4
         152:-lungif.5 => /usr/local/lib/libungif.so.5
         153:-lxml2.5 => /usr/local/lib/libxml2.so.5
         154:-lruby.18 => /usr/local/lib/libruby.so.18
         155:-lWand.9 => /usr/local/lib/libWand.so.9
         156:-lMagick.9 => /usr/local/lib/libMagick.so.9
         157:-lMagick++.9 => /usr/local/lib/libMagick++.so.9
         158:-lasprintf.0 => /usr/local/lib/libasprintf.so.0
         159:-lchasen.0 => /usr/local/lib/libchasen.so.0
         160:-lclamav.1 => /usr/local/lib/libclamav.so.1
         161:-lcurl.3 => /usr/local/lib/libcurl.so.3
         162:-ledit.6 => /usr/local/lib/libedit.so.6
         163:-lexpat.6 => /usr/local/lib/libexpat.so.6
         164:-lexslt.8 => /usr/local/lib/libexslt.so.8
         165:-lfpx.1 => /usr/local/lib/libfpx.so.1
         166:-lgettextpo.1 => /usr/local/lib/libgettextpo.so.1
         167:-lgmp.6 => /usr/local/lib/libgmp.so.6
         168:-lgmpxx.3 => /usr/local/lib/libgmpxx.so.3
         169:-lgnugetopt.1 => /usr/local/lib/libgnugetopt.so.1
         170:-lintl.6 => /usr/local/lib/libintl.so.6
         171:-ljasper.4 => /usr/local/lib/libjasper.so.4
         172:-ljbig.1 => /usr/local/lib/libjbig.so.1
         173:-lkakasi.3 => /usr/local/lib/libkakasi.so.3
         174:-llcms.1 => /usr/local/lib/liblcms.so.1
         175:-lltdl.4 => /usr/local/lib/libltdl.so.4
         176:-lrpm.0 => /usr/local/lib/librpm.so.0
         177:-lrpmbuild.0 => /usr/local/lib/librpmbuild.so.0
         178:-lruby18.18 => /usr/local/lib/libruby18.so.18
         179:-lslang.1 => /usr/local/lib/libslang.so.1
         180:-lt1.5 => /usr/local/lib/libt1.so.5
         181:-lt1x.5 => /usr/local/lib/libt1x.so.5
         182:-ltiffxx.4 => /usr/local/lib/libtiffxx.so.4
         183:-lutf-8.1 => /usr/local/lib/libutf-8.so.1
         184:-lwmf.2 => /usr/local/lib/libwmf.so.2
         185:-lwmflite.7 => /usr/local/lib/libwmflite.so.7
         186:-lxslt.2 => /usr/local/lib/libxslt.so.2
         187:-lpcrecpp.0 => /usr/local/lib/libpcrecpp.so.0
         188:-lmpfr.1 => /usr/local/lib/libmpfr.so.1
         189:-lhistory.5 => /usr/local/lib/libhistory.so.5
         190:-lreadline.5 => /usr/local/lib/libreadline.so.5
         191:-llthread.2 => /usr/local/lib/liblthread.so.2
         192:-lunrar.3 => /usr/local/lib/libunrar.so.3
         193:-larchive.3 => /usr/local/lib/libarchive.so.3
         194:-ldb4_cxx.0 => /usr/local/lib/libdb4_cxx.so.0
         195:-ldb4.0 => /usr/local/lib/libdb4.so.0
         196:-lmysqlclient.14 => /usr/local/lib/mysql/ 
libmysqlclient.so.14
         197:-lmysqlclient_r.14 => /usr/local/lib/mysql/ 
libmysqlclient_r.so.14
         198:-lalias.3 => /usr/local/lib/compat/pkg/libalias.so.3
         199:-lc.3 => /usr/local/lib/compat/pkg/libc.so.3
         200:-lc_r.3 => /usr/local/lib/compat/pkg/libc_r.so.3
         201:-lcurses.2 => /usr/local/lib/compat/pkg/libcurses.so.2
         202:-ldialog.3 => /usr/local/lib/compat/pkg/libdialog.so.3
         203:-ledit.2 => /usr/local/lib/compat/pkg/libedit.so.2
         204:-lexpat.4 => /usr/local/lib/compat/pkg/libexpat.so.4
         205:-lexslt.7 => /usr/local/lib/compat/pkg/libexslt.so.7
         206:-lf2c.2 => /usr/local/lib/compat/pkg/libf2c.so.2
         207:-lfetch.1 => /usr/local/lib/compat/pkg/libfetch.so.1
         208:-lftpio.4 => /usr/local/lib/compat/pkg/libftpio.so.4
         209:-lg++.4 => /usr/local/lib/compat/pkg/libg++.so.4
         210:-lgettextpo.0 => /usr/local/lib/compat/pkg/ 
libgettextpo.so.0
         211:-lss.2 => /usr/local/lib/compat/pkg/libss.so.2
         212:-lhistory.3 => /usr/local/lib/compat/pkg/libhistory.so.3
         213:-lintl.4 => /usr/local/lib/compat/pkg/libintl.so.4
         214:-lintl.5 => /usr/local/lib/compat/pkg/libintl.so.5
         215:-lmysqlclient.10 => /usr/local/lib/compat/pkg/ 
libmysqlclient.so.10
         216:-lmytinfo.2 => /usr/local/lib/compat/pkg/libmytinfo.so.2
         217:-lncurses.3 => /usr/local/lib/compat/pkg/libncurses.so.3
         218:-lreadline.3 => /usr/local/lib/compat/pkg/libreadline.so.3
         219:-lstdc++.2 => /usr/local/lib/compat/pkg/libstdc++.so.2
         220:-ltermcap.2 => /usr/local/lib/compat/pkg/libtermcap.so.2
         221:-lutil.2 => /usr/local/lib/compat/pkg/libutil.so.2
         222:-lvgl.1 => /usr/local/lib/compat/pkg/libvgl.so.1
         223:-lwrap.2 => /usr/local/lib/compat/pkg/libwrap.so.2
         224:-lxpg4.2 => /usr/local/lib/compat/pkg/libxpg4.so.2
         225:-lxslt.1 => /usr/local/lib/compat/pkg/libxslt.so.1
         226:-lgdbm.2 => /usr/local/lib/compat/pkg/libgdbm.so.2
         227:-ledit.5 => /usr/local/lib/compat/pkg/libedit.so.5
         228:-lexpat.5 => /usr/local/lib/compat/pkg/libexpat.so.5

Also tried:

   chroot /home/testuser && /usr/libexec/sftp-server
   chroot: /bin/csh: No such file or directory

Copied csh into /home/testuser/bin and got:

   chroot /home/testuser && /usr/libexec/sftp-server
   csh: Cannot open /etc/termcap.
   csh: using dumb terminal settings.

Copied /etc/termcap into /home/testuser/etc/ and still get the  
above.  SFTP client still won't login.

Still stumped.  Any ideas anyone?

Thanks,

Stuart

On 21 Mar 2006, at 17:22, Paul Hyder wrote:

> This is starting to look like shell handling in the execution of  
> configure,
> it doesn't find the --enable-chrooted-binary flag.
>
> Anyone on the list running FreeBSD have suggestions?
>      Paul Hyder
>
> Stuart Green wrote:
>> Hello Paul,
>>
>> Thanks for the email.
>>
>> Have checked the config.log file and the flag is there without a  
>> typo.
>>
>> In config.h, there is no value for CHROOTED_NAME.
>>
>> There are a few configure errors which seem to be due to files not
>> being there.  All have .h extensions.
>>
>> Have tried this several times now and the result is the same.   
>> Stumped!
>>
>> Stuart
>>
>>
>>
>>> If you are using the sublimation.org source, the messages you are
>>> getting indicate a missing --enable-chrooted-binary flag.
>>>
>>> Things to check:
>>>   -config.log and verify the options seen by configure. (look for
>>> typo's)
>>>   -check for configure error messages
>>>   -Look in config.h and make sure the value for CHROOTED_NAME is
>>> scponlyc
>>>
>>> Off hand I would guess a typo in the flag but there may be something
>>> happening in either configure or your particular version of make.
>>>      Paul Hyder
>>>      NOAA Earth System Research Laboratory, Global Systems Division
>>>      Boulder, CO
>>>
>>>
>>> ----- Original Message -----
>>> Date: Monday, March 20, 2006 2:35 pm
>>> Subject: [scponly] scponly 4.6 install blues
>>>
>>>> Hi,
>>>>
>>>> I'm pulling my hair out installing scponly 4.6.
>>>>
>>>> The OS is FreeBSD 4.7.  I'm starting from an unzipped distribution
>>>> with:
>>>>   ./configure --enable-chrooted-binary
>>>>
>>>> Then I type:
>>>>
>>>>   make
>>>>
>>>> Then I type:
>>>>
>>>>   make install
>>>>
>>>> Can I find scponlyc?  Can I heck.
>>>>
>>>> Running setup_chroot.sh just brings a message back telling me that
>>>> I
>>>> didn't configure the --enable-chrooted_binary option.  Which I did.
>>>>
>>>> Do I need to uninstall (if so, how?) and then reinstall?
>>>>
>>>> Can anyone help?
>>>>
>>>> Thanks,
>>>>
>>>> Stuart
>>>>
>>>> _______________________________________________
>>>> scponly mailing list
>>>> scponly at lists.ccs.neu.edu
>>>> https://lists.ccs.neu.edu/bin/listinfo/scponly
>>>>
>>
>>
>> _______________________________________________
>> scponly mailing list
>> scponly at lists.ccs.neu.edu
>> https://lists.ccs.neu.edu/bin/listinfo/scponly




More information about the scponly mailing list