Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: RE: scponly for chrooted sftp server in cygwin Date: Thu, 10 Feb 2005 14:11:01 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/