473,762 Members | 7,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6441
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$******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP10.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$******** ******@TK2MSFTN GP12.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\wwwr oot\sitename, pull up the properties dialog of the "sitename"
folder in Windows Explorer, go to the security tab, add IUSR_computerna me,
and either give the user full control, or select individual permissions.

Ray at work

"AndrewM" <sa***@island-style.net> wrote in message
news:e$******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP10.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$******** ******@TK2MSFTN GP12.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
3412
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 example and not in the second.
2
482
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 example, when I want to run a JavaScript from an external file (i.e., not inline), I would do the following ... <SCRIPT LANGUAGE="JavaScript" SRC="program.js"> </SCRIPT> If "program.js" were in a different subdirectory than the .htm file
9
1494
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 source. I have changed the code to refer to just the subdirectories (i.e. / images/terrain) instead of the fully qualified path (/home/dude/ desktop/program/images/terrain). Some of the images load and some do not. The code appears to be...
1
1577
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 a network relative path (not mapped to any drive) i.e in the format "\\servr_name\..." than i get internet explorer could not display the web page. It happens immediately on client side (no place to debug). Any other path in the format for...
12
1829
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 possible to do with the link element? Thanks
17
6135
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 containing a table which (amongst other things) holds the filenames of numerous jpeg images stored in an external folder. O/S is Windows XP Pro. btw. I also have a vb.net 2008 form connected to the database. That part works fine, all the fields show up...
1
2666
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 = "C:\\ab\\unil" >>> unicode(fp, "unicode_escape") Traceback (most recent call last): File "<pyshell#41>", line 1, in <module>
0
10137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9927
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9812
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6640
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5268
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.