473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Permission denied when using fs.CreateFolder(path)

Hello everyone,

I have an asp page with a create folder script

fs.CreateFolder(path)

When running this on the server I get a Permission denied message as the
IUSER account has no write permission. Does anyone know if I can get this
page to login as a different user in order to run this script ?

Any help or advise will be appreciated.

Thanks,
Andrew.
Jul 19 '05 #1
3 6419
You can authenticate your user with Windows authentication, but why wouldn't
you just give IUSR permission to create folders if that's what your
application needs to do?

Ray at work

"AndrewM" <sa***@island-style.net> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
Hello everyone,

I have an asp page with a create folder script

fs.CreateFolder(path)

When running this on the server I get a Permission denied message as the
IUSER account has no write permission. Does anyone know if I can get this
page to login as a different user in order to run this script ?

Any help or advise will be appreciated.

Thanks,
Andrew.

Jul 19 '05 #2
Hello,

My IUSR account is setup with guest group. Do I just change this to users
group or is there a better way to give write permissions ?

Thanks,
Andrew.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:eS**************@TK2MSFTNGP10.phx.gbl...
You can authenticate your user with Windows authentication, but why wouldn't you just give IUSR permission to create folders if that's what your
application needs to do?

Ray at work

"AndrewM" <sa***@island-style.net> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
Hello everyone,

I have an asp page with a create folder script

fs.CreateFolder(path)

When running this on the server I get a Permission denied message as the
IUSER account has no write permission. Does anyone know if I can get this page to login as a different user in order to run this script ?

Any help or advise will be appreciated.

Thanks,
Andrew.


Jul 19 '05 #3
Yeah, I'd still leave the group membership alone, and then just give
explicit permission for IUSR to modify the directory in which you want to
create folders. So, if you want IUSR to be able to create directories in
C:\Inetpub\wwwroot\sitename, pull up the properties dialog of the "sitename"
folder in Windows Explorer, go to the security tab, add IUSR_computername,
and either give the user full control, or select individual permissions.

Ray at work

"AndrewM" <sa***@island-style.net> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl...
Hello,

My IUSR account is setup with guest group. Do I just change this to users
group or is there a better way to give write permissions ?

Thanks,
Andrew.
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:eS**************@TK2MSFTNGP10.phx.gbl...
You can authenticate your user with Windows authentication, but why

wouldn't
you just give IUSR permission to create folders if that's what your
application needs to do?

Ray at work

"AndrewM" <sa***@island-style.net> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
Hello everyone,

I have an asp page with a create folder script

fs.CreateFolder(path)

When running this on the server I get a Permission denied message as the IUSER account has no write permission. Does anyone know if I can get this page to login as a different user in order to run this script ?

Any help or advise will be appreciated.

Thanks,
Andrew.



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bryan | last post by:
i have a batch file that contains these two lines: -- args.bat echo %1 echo %2 when i run args.bat from the command line it works correctly... notice that abc has quotes in the first...
2
by: wylbur37 | last post by:
I normally use Mozilla 1.4 on Windows XP Pro. As I was developing some test webpages, I discovered that the SRC parameter doesn't seem to work when a path is used with the filename. In one...
9
by: elShazo | last post by:
Question: Program was originally developed in directory "/home/dude/ desktop/program" with subdirectores. I want the program and the files it needs to run (images, settings files, etc.) from a new...
1
by: Oren | last post by:
Hi, Im working with asp.net visual web developer 2005. Im writing an asp .net application on windows XP enviroment. Im using .net FileUpload control to get the path from the user. If the path is...
12
by: Lance Wynn | last post by:
Hello all, Is there a way to use the ~/ path to link a CSS page? I thought maybe something like this would work, but no go: <link href="~/style.css" rel="stylesheet" type="text/css"/> Is this...
17
by: madasamonkey | last post by:
If someone could take pity and help me out with this before I drive myself completely nuts, then I would really appreciate it. Here's what I'm trying to do: I have an Access 2003 database...
1
by: aberry | last post by:
I am facing an error on Unicode decoding of path if it contain a folder/file name starting with character 'u' >>> fp = "C:\\ab\\anil" >>> unicode(fp, "unicode_escape") u'C:\x07b\x07nil' >>> fp...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.