delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/30/10:53:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <229D7C0FE0BED311A0E800805F0DD471010D2DE0@wn01ex.wn.gb.solvay.com>
From: "Craveiro, Marco" <Marco DOT Craveiro AT solvay DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: inetd / ftpd file permissions
Date: Tue, 30 Apr 2002 16:51:53 +0200
MIME-Version: 1.0

hello cygwinners,

i have a little problem again (bad week). i started using cygwin's ftp
server instead of NT's. its working fine but the default permissions for the
files are different and they are causing problems with some of my scripts. i
searched the web and found the exact answer for this problem: a wrapper
script (but not specifically for cygwin). i then

1) installed the wrapper under /usr/sbin/in.ftpd-wrapper.sh and chmoded it
to 755. contents:

#!/bin/sh
umask 666

exec /usr/sbin/in.ftpd

2) changed my /etc/inetd.conf to 

ftp     stream  tcp     nowait  root    /usr/sbin/in.ftpd-wrapper.sh
in.ftpd-wrapper.sh      

3)  stopped and started the service.

unfortunately, i still get my files transferred with 022 permissions. i
couldn't find anything in cygwin's mailing list about this. is this the
right way to do it for cygwin? 

thanks for your time.

marco

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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