Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Pro Code Clinic
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2003, 04:19 AM
Authorized User
 
Join Date: Jun 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default Set permissions in folder created with CopyFolder?

Hello all

Can I have permissions be automatically set in a newlly created folder through the CopyFolder method of the FileSystemObject object?

If it is not possible, will my new folder have permissions propagated from the folder it is copied from? Or will I have to set them manually each time the folder is created?

Thanks in advance

Nikos
 
Old August 3rd, 2004, 05:03 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi
if you create a folder inside the permissions folder no need 2 give permissions 4 new folder

surendran
(Anything is Possible)
 
Old August 3rd, 2004, 09:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

What kind of permission are you trying to propagate? FSO can be used to copy contents from one place to another, provided that you have enough permissions to access both the source and destination. But if that permission contradicts to the usage of FSO, then you cannot access those files/folder at all.

Just taken from a website
ASP pages reside and are executed on the web server, when using FSO to access the file system, you are accessing the web server's file system. You cannot access the client's file system using the FileSystemObject in your ASP code.

One important thing to keep in mind when using the FileSystemObject is permissions! In Windows NT, there are three types of permissions: Read, Write, and Full Access. Whenever an ASP page attempts to execute some file system command using FSO, the anonymous web user ID is used: IUSR_machinename (i.e., if your webserver is named Bob, the user ID is IUSR_Bob). If IUSR_machinename doesn't have permissions to Read for a particular directory, you cannot use FSO to read the contents of a file in that directory through an ASP page. If IUSR_machinename doesn't have permissions to Write for a particular directory, you cannot use FSO to write a file to that directory through an ASP page. If IUSR_machinename doesn't have Full Access permissions for a particular directory, you cannot use FSO to delete or move a file from that directory through an ASP page.

Read this link, not sure if this helps you in a way.How To Use ADSI to Set Automatic Inheritance of File/Folder Permissions

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Folder Permissions lewdogg Classic ASP Components 0 June 28th, 2005 07:23 PM
Folder listing and permissions Tom Perro Classic ASP Professional 1 February 23rd, 2004 10:59 AM
How to set permissions on a shared folder adman Pro VB 6 1 February 19th, 2004 11:07 AM
Set permissions on a shared folder adman Beginning VB 6 2 February 12th, 2004 03:06 AM
Set permissions in folder created with CopyFolder? nikosdra Classic ASP Basics 2 October 23rd, 2003 02:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.