Re: MGET command deletes files



Thanks for testing this.

I am using a Windows 2000 server - which I believe has IIS5.0.

I have also tested on an XP machine - which again I think has IIS5.1
installed, and I couldn't recreate the error.

I looks as though it might only be restricted to IIS5.0.

"Bernard Cheah [MVP]" wrote:

> Interesting, but I can't repro the error. I'm using IIS5.1 to test :)
>
> have a file called file.txt
> at c:\inetpub\ftproot
> and c:\
>
> My user was denied full control on the file c:\file.txt
> while everyone full control for c:\inetpub\ftproot\file.txt
>
> I then ftp. make the localpath at c:\
> then mget file.txt
> ftp> mget file.txt
> 200 Type set to A.
> mget file.txt? y
> Error opening local file file.txt.
> > file.txt:Permission denied
>
> then open windows explorer. the original file.txt still exist - no changes,
> and I can't open it as well.
> open the ftp log file, no sent /file.txt 226 was recorded.
>
> Can you double check and ensure the user doesn't have any permissions on
> local \\destination\folder2\file.txt
>
>
> --
> Regards,
> Bernard Cheah
> http://www.iis-resources.com/
> http://www.iiswebcastseries.com/
> http://www.msmvps.com/bernard/
>
>
> "Jo Winchester" <JoWinchester@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:C2403E6A-95A0-402F-9665-B41F1D073084@xxxxxxxxxxxxxxxx
> > The is the scenario when files are deleted incorrectly:
> >
> > The have 2 folders - one on a source server, one on a destination server.
> > There is a file in both folders with the same name.
> >
> > \\source\folder1\file.txt
> > \\destination\folder2\file.txt
> >
> > I am running the "mget" command to copy all files from folder1 to folder2.
> > However, the permissions on the copy of file.txt in folder 2 are very
> > restrictive, (for example, only one user account has permissions on the
> > file,
> > and they only have read access). The permissions on the file in folder1
> > are
> > everyone - full control.
> > When the "mget" command is run from a command line, you are prompted
> > whether
> > to transfer file.txt. Typing "y" to confirm that you would like to
> > transfer
> > the file returns an error of
> >
> > Error opening local file File.
> >> File.txt:Permission denied
> >
> > Which is what you would expect. However, file.txt in folder2 then gets
> > deleted.
> > The FTP IIS log indicated that the file has transferred successfully.
> >
> > 10:43:38 127.0.0.1 [13]sent /folder1/file.txt 226
> >
> > Jo
> >
> > "Bernard Cheah [MVP]" wrote:
> >
> >> Not sure if I get you correctly. the file that can't be overwrite but get
> >> deleted when you try to get it ?
> >> not able download ? but delete ? doens't make sense, right ?
> >>
> >> what's the iis ftp status code in the log file.
> >>
> >> --
> >> Regards,
> >> Bernard Cheah
> >> http://www.microsoft.com/iis/
> >> http://www.iiswebcastseries.com/
> >> http://www.msmvps.com/bernard/
> >>
> >>
> >> "Jo Winchester" <JoWinchester@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:2F6225DA-F175-4CDE-9E52-D5BBFDA03695@xxxxxxxxxxxxxxxx
> >> >I am using the MGET command, and have been testing to see what happens
> >> >if
> >> >you
> >> > try to transfer a file that has the same name as a file in the
> >> > destination
> >> > folder, but the file in the destination folder has permissions set so
> >> > that
> >> > it
> >> > can't be overwritten.
> >> > Running from a command prompt, if I run mget *.* I am prompted y/n to
> >> > transfer the file, then get a "permission denied" message (which is
> >> > what
> >> > I'd
> >> > expect) but the file that cannot be overwritten is then deleted. I am
> >> > going
> >> > to be automating the FTP xfer, and am concerned that files may be
> >> > deleted
> >> > unexpectedly
> >>
> >>
> >>
>
>
>
.



Relevant Pages

  • iis6 ftp permissions
    ... I have a problem with permissions. ... I'm trying to set up iis6 ftp on w2k3 so that ftp ... And to do this, following the backdoor folders trick, I have set up ... The root then has two virtual directories: ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: ftp secured access
    ... Refer ... Create an FTP Folder with Read Access but Not List Access ... > allow the folders which a user has permissions to view, ...
    (microsoft.public.inetserver.iis.security)
  • Re: iis6 ftp permissions
    ... of those website folders. ... > I have a problem with permissions. ... > is a many-to-many relationship between the ftp users and web sites. ... > and each of these virtual directories have two sub virtual directories ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: FTP Permissions
    ... I'm not sure on this but make sure your folders have the right permissions ... at the upper levels. ... AD users have NTFS permissions to where the FTP site points to. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: cant access ftp site
    ... check user's permissions and rights. ... created ftp site, home directory is a folder i created under the default ... when i check the site status and log file, ...
    (microsoft.public.inetserver.iis.ftp)