Avatar of jwhiteman1967
jwhiteman1967
 asked on

FTP file permissions and IUSR

I want to ftp a file from another server, then allow an ASP page read the file and use the data in it. It is a plain text file but I am getting permission errors.  When I reset the permissions manually I can read it.  I need the permissions to be rest for the IUSR automatically.

How do I do this?
Microsoft IIS Web ServerWeb Applications

Avatar of undefined
Last Comment
andygarratt

8/22/2022 - Mon
andygarratt

Hi,

You need to ensure the folder the file is placed in has the right permissions, ie. the root folder for the ftp site.

Andy
jwhiteman1967

ASKER
I am getting a file from one server and placing it on MY server. Then I want to manipulate it once it is on MY server.  I set the IUSR settings on the file and it WORKED, BUT I had to do it manually.  When the file is deleted or renamed the new file when I download again has to have the permissions set all over again.  the directory has the correct permissions but is not allowing access.

The Directory where the file is placed has Read/Write settings enabled.  I should be able to read it but I cannot.
andygarratt

Hi,

Does the IUSR user have read permissions on the folder the file is created in by the ftp server?

Andy
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
jwhiteman1967

ASKER
After downloading the File Owner is listed as the Admin, but I need it to be the IUSR
jwhiteman1967

ASKER
Yes the IUSR has read permissions, but when the file is downloaded the IUSR account is not included in the groups that are allowed to access the file
jwhiteman1967

ASKER
The owner of the folder it the IUSR but when the batch file downloads the datafile the owner of the file is the Administrator.  This is the problem. How do I get around it?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
andygarratt

Hi,

Is the file being downloaded by this server or is it being sent to this server?

Andy
jwhiteman1967

ASKER
The file is being downloaded by MY server.
andygarratt

Ah, is that a scheduled job? If so try setting the scheduled job to run as a different user, preferably the IUSR.

Files created by a job will be owned by the job owner.

Andy
Your help has saved me hundreds of hours of internet surfing.
fblack61
jwhiteman1967

ASKER
I will try that.
jwhiteman1967

ASKER
Window won't let me allow the IUSR to make a scheduled item.  Tells me I don't have perm. Funny though I am logged in as admin
jwhiteman1967

ASKER
Found answer... Found a script that would let me change the permissions at will.


How to use Xcacls.vbs to modify NTFS permissions
http://support.microsoft.com/kb/825751

⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
andygarratt

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.