delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/10/16:11:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <200502102110.j1ALAjD5018086@pilsener.srv.ualberta.ca>
From: "Chad Neufeld" <neufeld AT ualberta DOT ca>
To: <cygwin AT cygwin DOT com>
Subject: RE: scponly for chrooted sftp server in cygwin
Date: Thu, 10 Feb 2005 14:11:01 -0700
MIME-Version: 1.0

Thank you for the help Christian,

I was able to make and install scponly.

I still get the following error during the make phase.

	gcc -g -O2 -I. -I. -DHAVE_CONFIG_H
-DDEBUGFILE='"/usr/local/etc/scponly/debuglev
	el"' -o helper.o -c helper.c
	helper.c:174: warning: passing arg 1 of `strdup' makes pointer from
integer with
	out a cast
	helper.c:179: warning: passing arg 1 of `strcmp' makes pointer from
integer with
	out a cast

During the install phase the script attempted to set some file permisissions
as follows:
	${INSTALL} -o 0 -g 0 scponly ${bindir}/scponly
	${INSTALL} -o 0 -g 0 -m 0644 scponly.8 ${mandir}/man8/scponly.8
	${INSTALL} -o 0 -g 0 -m 0644 debuglevel ${DEBUGFILE}

but was returing an error message:
	install: cannot change ownership of '/usr/local/bin/scponly'

I changed the make file to:
	${INSTALL} -o SYSTEM -g SYSTEM scponly ${bindir}/scponly
	${INSTALL} -o SYSTEM -g SYSTEM -m 0644 scponly.8
${mandir}/man8/scponly.8
	${INSTALL} -o SYSTEM -g SYSTEM -m 0644 debuglevel ${DEBUGFILE}
And it worked fine.

I tried using the setup_chroot.sh script but could not get it to work.  You
mentioned an alternative make tool for setting up chrooted users.  Or
instructions on how to manually set it up.  

Your help is greatly appreciated.

Chad


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019