473,545 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NTFS-security and Scripting.FileS ystemObject

Hello,
I want to list my folders with ASP.
I use following script to achieve this:

Set oFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")
Set oRoot = oFSO.GetFolder( Path)
Set oFolders = oRoot.SubFolder s
for Each oFolder in oFolders
Response.Write FolderDisplayNa me
next

However,
Some of the folders should be hidden for public acces.
I want to use NTFS-security to hide those folders (no access for IUSR_xxx)

But if I set NTFS security on a folder to "full access" ONLY for known users
on my system, I recieve an error:
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied

Is there a way to avoid this problem?
Can I 'skip' this folder by first checking it's security settings?
How?

thanx in advance,

bartp

--

=============== =============== ============
Hyper A.R.T.
bart plessers
Paul Van Ostaijenlaan 4
3001 Heverlee
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
=============== =============== ============


Jul 19 '05 #1
0 2708

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

Similar topics

1
8002
by: BingoHandJob | last post by:
Hello group! I'm having a problem and I hope some of you may be able to point me in the right direction. I inherited a web site using php, running on Windows 2000 & IIS. The site was developed by a consulting firm about a year before I came on board, the consultant has since gone out of business. Overall, I've never had a problem with...
5
1738
by: travelling_nerd | last post by:
Hi, I'm trying to write a script that will allow validated users to download a file that has specific ntfs permissions. Here's a summary: Scenario: 1) The name of the file is "binary.zip". 2) I've created a local account on the server called "dl_user". 3) dl_user is the only account that has permissions on binary.zip. 4) I've written a...
0
1197
by: DEATH TO KENT WEST HILL | last post by:
Praise http://linux-ntfs.sourceforge.net/misc.html#praise If you have a success story you'd like to share, let me know (webmaster@flatcap.org). Your project just saved me!! I run red hat 7.2 and have an NT box that I do a lot of graphics development on. The nt box crashed and the emergency disk
0
1461
by: Chris Stocker | last post by:
The problem that we see is that we can not create a reparse point on the file system. The operating system returns error 282 which means that the FS doesn't support extended attributes, which it should I believe if it is NTFS. There may be a way to turn off extended attributes on NTFS, but I am not aware of how. The call that we make is...
2
3018
by: Matt | last post by:
Hello, In my application that I'm writing in C++ (and maybe Java), specifically the cygwin flavor of C++, I want to be able to open any existing files in FAT32 or NTFS file systems (in Windows XP) for read-only purposes. In particular, I want my program to unconditionally be able to read-only open any file--and be able to read all the...
2
3212
by: Jim Richards | last post by:
I have been told by a local PC club technician that 98SE cannot read NTFS drives in a network. Is this true? TIA, Jim.
6
1244
by: | last post by:
Hi, On the file handling methods, if you are dealing with files (Windows filesystem is case INSENSITIVE) yet when you specify file A.BLAH and its a.blah on windows, you get FileNotFoundException. If this by design for cross platform and different file systems or a bug? Shouldnt this be defaulting to INSENSITIVE instead of SENSITIVE on...
3
406
by: Ray Cassick \(Home\) | last post by:
I am starting to think there is some kind of conspiracy :) but everywhere I try to locate some (working) code showing how to change NTFS partitions on a network share I end up at a dead end. I found tons of references to a tech note (below) but MS seems to have 'lost' it :) Any ideas? http://support.Microsoft.com/?id=818362 --
5
3318
by: Thomas | last post by:
Hi folks, is there any obvious reason why the java compiler cannot load jars from an NTFS filesystem under Linux (Debian) ? I know for sure that the path I specify is correct and I have read permit on that FS (not write though). I can actually list the content of the jar with any standard linux utility (cat, less...). If I copy the same...
2
3411
by: rapposworld | last post by:
What is the different between a quick ntfs format and a regular ntfs format, can anyone help on this plz, tysm
0
7478
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
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. ...
0
7773
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...
0
5984
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...
1
5343
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
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...
0
3466
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...
0
722
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...

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.