Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 30 Mar 2001 10:25:57 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: anonymous ftp Message-ID: <20010330102557.N16622@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <3AC2F17A DOT 82B86CE9 AT certum DOT pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3AC2F17A.82B86CE9@certum.pl>; from jacek@certum.pl on Thu, Mar 29, 2001 at 10:25:30AM +0200 On Thu, Mar 29, 2001 at 10:25:30AM +0200, Jacek Trzcinski wrote: > Hi ! > I have just testing setting anonymous ftp under cygwin. I have few > remarks > 1) My "ftp" user has to posses the same uid as user "guest" but gid may > be any. if uid is not equal > to "guest" uid then error "can not set uid" appeared under ftp > client. In description concerning ftp > daemon there was example where ftp user had uid=100 and gid=10. It of > course does not work at me. > Where is mistake ? Sorry, I don't understand your description. > 2) Rights problem. I utilize in my system "ntsec" switch. When I'm > logging via ftp to my cygwin ftp daemon as for example user "jacek" , > rights to files and directories displaying by "ls -al" seem to look OK. > If locally being "root" I set owner as "root" and group as "root" to any > file or directory , ls for ftp user "jacek" displays it but... even if > only user "root" has right to write to any file and directory and "root" > is its owner , I can as a user "jacek" via ftp to delete this file or > directory !!! Is your user `jacek' member of the administrators group? > If I'm logging to my ftpd daemon as a "anonymous" user then "ls -al" > shows that owner of the file is not "root" but "guest" !!! and group is > not "root" but "Administ". Without any problem I can delete > anything !!!. Where are errors ? anonymous ftp does work in a chroot environment. If you don't duplicate the /etc/passwd file to /home/ftp/etc/passwd, Cygwin can't determine the user info correctly. I'm not quite sure why it may delete everything. Does it have ownership and write access to it's own home dir? > Here I show my passwd file I'm missing /etc/group. It's not that important but it sometimes helps to analyze the situation. Corinna > > root::0:0:root for > cygwin,U-Administrator,S-1-5-21-1309239993-2107901829-782984527-500:/home/root:/bin/bash > SYSTEM:*:18:18:,S-1-5-18:: > Administratorzy:*:544:544:,S-1-5-32-544:: > Administrator::500:513:,S-1-5-21-1309239993-2107901829-782984527-500:/home/Administrator:/bin/false > guest::501:513:,S-1-5-21-1309239993-2107901829-782984527-501:/home/guest:/bin/false > IUSR_JNTPRACA::1010:513:Konto Internet > Guest,S-1-5-21-1309239993-2107901829-782984527-1010:/home/IUSR_JNTPRACA:/bin/false > jacek::1004:513:Jacek > TrzciDski,S-1-5-21-1309239993-2107901829-782984527-1004:/home/jacek:/bin/bash > ftp::501:10:anonymous ftp for > cygwin,U-guest,S-1-5-21-1309239993-2107901829-782984527-501:/home/ftp:/bin/bash > > > Thanks in advance > Jacek > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple