This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

anonymous ftp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]