473,414 Members | 1,618 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,414 software developers and data experts.

Privileges using windows API

Hi,

I've a component (DLL COM) that retrieves Fonts system's folder by calling
SHGetSpecialFolderLocation / SHGetPathFromIDList windows API.

Using this component from VB 6.0 it's all OK.
Using this component from ASP, it is not able to retrieve Fonts system's
folder (returns an empty string).
If I assign to the ASP application "administrator" rights (in IIS), the
component returns the Fonts system's folder OK (c:\windows\fonts).

I don't understand mechanisms on which privileges are based.

Can someone help me ?
Thanks

Adriano
Mar 3 '06 #1
2 1354
If I assign to the ASP application "administrator" rights (in IIS), the
component returns the Fonts system's folder OK (c:\windows\fonts).

I'm not sure what you mean by this. How can an application be given
administrator rights?

I don't understand mechanisms on which privileges are based.

Can someone help me ?


The security token under which ASP code runs will in most cases be
IUSR_<machinename> which is usually a Guest level account. Hence it has
very little access to things such as the windows root folder.

Anthony.
Mar 3 '06 #2
"Anthony Jones" <An*@yadayadayada.com> ha scritto nel messaggio
news:%2****************@TK2MSFTNGP15.phx.gbl...
If I assign to the ASP application "administrator" rights (in IIS), the
component returns the Fonts system's folder OK (c:\windows\fonts).

I'm not sure what you mean by this. How can an application be given
administrator rights?


I assign administrator rights to the ASP application by IIS:
- properties on the virtual directory (my application)
- select "Directory Security" tab
- click "Edit" button on "Anonymous access and authentication control" frame
- click "Edit" button on "Anonymous access"
- enter the username and password for "administrator" user
I don't understand mechanisms on which privileges are based.

Can someone help me ?


The security token under which ASP code runs will in most cases be
IUSR_<machinename> which is usually a Guest level account. Hence it has
very little access to things such as the windows root folder.


OK, but i have to call Shell32 windows API (SHGetSpecialFolderLocation /
SHGetPathFromIDList), not "to write" on windows folder

Thanks for any help

Adriano

Mar 3 '06 #3

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

Similar topics

3
by: Marc | last post by:
Hello, I have 3 users in my MySQL server. One of them has Grant access (actually: all privileges). I cannot login as this user using phpMyAdmin - my password is not accepted (though I' m sure it...
0
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I...
0
by: Marc | last post by:
Hello, I have 3 users in my MySQL server. One of them has Grant access (actually: all privileges). I cannot login as this user using phpMyAdmin - my password is not accepted (though I' m sure it...
1
by: Shalini | last post by:
Hi I am posting this again.Sorry for the trouble. I just have a third party dll which does some custom functionality. The Dll have some apis which run only when the user is an administrator. I...
0
by: shefali | last post by:
Hi, I need to use an HTTPHandler to create and write files. I wanted to create the file in the directory that has this handler, and other handlers. For me, this directory is:...
0
by: Praveen_db2 | last post by:
Hi All db2 8.1.3 Windows I have a user projuser in Windows.Using this user I have created a SQL Stored Procedure user_proc1.Implicitly projuser has CONTROL privilege and many others on this SP...
7
by: Peter Bradley | last post by:
Hi, I'm writing a Web service (the first one I've ever written in anger, by the way) that has to do some AD manipulation and then has to create some directories on some remote servers. Doing...
0
by: EricBlair | last post by:
Hello, I wrote a windows service that is supposed to start an interactive GUI app. I realize a service will not readily do this so I've pieced together the code below to bypass that. However, the...
6
by: Frank Swarbrick | last post by:
I feel like an idiot for asking this, but neither I nor my DBA can figure this out. How do you create a database object that does not implicitly allow access by any defined user? For instance,...
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.