Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 January 18th, 2005, 09:39 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default Security for a specific subfolder????

Hello to everyone!

I`m in the following situation. I`ve made an application where I have a folder called "app" with all the files of a web site in it. Also in this folder there is a subfolder called "admin" that contains all the files of another application which can administrate the web site I mentioned before. So... I want to give full access on folder "app", but limited access (username and password) on the subfolder "admin" (the path to subfolder is: "app/admin").

Well... do you understand what I mean??? How can I do that?

Thank you in advance!
 
Old January 18th, 2005, 10:04 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

I am assuming you are on either win 2000 or win 2003.

You can change the security settings for app folder. For this open windows explorer. Navigate to app folder. Right-click and open properties. Open security tab.

Add users and give full permission for all users. If you want script to give full permission (be careful !!), add the user iusr_<machine name> to the list.

Then go to /app/admin folder to set its permissions.

Click advanced settings button.

Uncheck "allow inheritable permissions from parent to propagate to this object".

Check "reset permissions on all child objects and enable propagation of inheritable permissions".

Add needed users and set permissions.

Hope this helps.
 
Old January 19th, 2005, 04:11 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It`s quite helpful because I understand how things works!

The bad thing is that I`m not working on Win 2000 or 2003... I`m working on Win XP Pro.

Any suggestion about that machine?
 
Old January 19th, 2005, 04:28 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

Sorry, I have not worked on XP. But I think it will be same as win 2003. You can try the same steps.
 
Old January 19th, 2005, 06:16 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is not a Security tab on the properties of the folder. Though... there is something like that about the virtual folder when you are setting up the IIS.

There is the possibility to give "anonymous access" permision and "Authenticated access". But I don`t know how to use this... :( I`m searching around the net, but can`t find something!
 
Old January 19th, 2005, 06:34 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Cochin, Kerala, India.
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to madhukp
Default

If you are looking for NT based authentication, please go through this post. It may be of some help to you.

http://p2p.wrox.com/topic.asp?TOPIC_ID=18956

Hope that helps.
 
Old January 19th, 2005, 06:49 AM
Authorized User
 
Join Date: Aug 2004
Location: Calicut, Kerala, India.
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In XP, the security tab is not visible by default.

For this you have to do the following.

Take the folder opton ( take this from the tools menu of any folder window)
Select the view tab.

Here there is a checkbox option to enable the folder security settings. (can't remember the text displayed for this ... better you go and find it yourself.)

After checking this on you can view the security tab for any folder on your XP machine.




 
Old January 19th, 2005, 09:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Open 'My Computer'. Click 'Tools' and then 'Folder Options'. Then click on the 'View' Tab and scroll all the way to the bottom. Uncheck 'Use Simple File Sharing(Recommended)' and click 'Ok' or 'Yes' to the warning.

 
Old January 19th, 2005, 09:22 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you guyz!!!

Your messages helped me very much! That was the solution I was looking for! :)

Ciao!!! ;)
 
Old January 20th, 2005, 05:49 AM
Friend of Wrox
Points: 486, Level: 7
Points: 486, Level: 7 Points: 486, Level: 7 Points: 486, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Athens, , Greece.
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hhhmmmm... Now, when I set the right permissions for each user... a window comes up where I have to put a "Username" and "Password" (!!!just as I wished for!!!). My question now is...:
- Which is the "username" and "password" that I should use?, and how can I change them????




Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy specific data in specific cells of sheet2 yogeshyl Excel VBA 1 May 14th, 2007 07:40 AM
how to read a subfolder content in php? method PHP How-To 0 February 8th, 2006 11:47 AM
can global.asa be used agan in subfolder? AviatorTim Classic ASP Basics 1 February 3rd, 2004 01:35 PM





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