If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Create folder on fileserver from webserver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-23-04, 04:15
crazyreds crazyreds is offline
Registered User
 
Join Date: Jul 2004
Posts: 10
Create folder on fileserver from webserver

Hi

I need to be able to create a folder on a fileserver from the webserver using ASP. This has to be done without giving every one in the anonymous user account (IUSER) r/w acess. But the problem is that from ASP every user is IUSER. Please help me?

Thanks

Brian
Reply With Quote
  #2 (permalink)  
Old 07-24-04, 00:47
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
So you have some users you do, and some you don't, want to give access to create folders on your fileserver from a web application?
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 07-24-04, 15:46
crazyreds crazyreds is offline
Registered User
 
Join Date: Jul 2004
Posts: 10
Yes.

Some can create and some are not allowed to do sow. But to the fileserver they are all anonymous user, when I use FSO (FileSystemObject) in ASP.
Reply With Quote
  #4 (permalink)  
Old 07-24-04, 19:08
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Then what you should probably do is have a login, authenticate against the NT domain or LDAP server, check for group membership, and if they have access (aka: they are in a specific group), you programically allow them to create the folder/files, otherwise you don't even present the option.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #5 (permalink)  
Old 07-26-04, 02:15
crazyreds crazyreds is offline
Registered User
 
Join Date: Jul 2004
Posts: 10
Yep I could do that, but it will leave the fileserver vide open. Because it requires that you give R/W access to all users. Because when you use FSO on the web server, you connect the fileserver as anonymous user

Last edited by crazyreds; 07-26-04 at 03:03.
Reply With Quote
  #6 (permalink)  
Old 07-26-04, 12:52
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Well, not exactly, only the area to the fileserver that people need to write to. So segment off a directory where the IUSR has r/w access, and the rest of the server IUSR doesn't.

You can't have the system impersonate the user who is currently on the system because you'd have to shut down IIS, change the user IIS uses, then start the server again, all dynamically. You're going to have to do it programmically and trust your security model and users.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #7 (permalink)  
Old 07-26-04, 14:39
crazyreds crazyreds is offline
Registered User
 
Join Date: Jul 2004
Posts: 10
Is is not possible to create a user on the fileserver(that have R/W), and impersonate the users on the webserver as the user on the file server?
Reply With Quote
  #8 (permalink)  
Old 07-26-04, 14:44
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
What you'd need to do is use an account on an NT domain that has R/W access to the file server that the web server could impersonate. You have to remember that the account that IIS runs as isn't there to be used to allow or disallow access to certain folders on your system, it's there because it needs to have rights to execute scripts and access resources. If you need anything beyond that, you've gotta code it.
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On