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 Message-ID: <3AC2F17A.82B86CE9@certum.pl> Date: Thu, 29 Mar 2001 10:25:30 +0200 From: Jacek Trzcinski Reply-To: jacek AT certum DOT pl X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: anonymous ftp Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ? 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 !!! 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 ? Here I show my passwd file 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