 |
| 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
|
|
|
|

January 18th, 2005, 09:39 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

January 18th, 2005, 10:04 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 19th, 2005, 04:11 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

January 19th, 2005, 04:28 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sorry, I have not worked on XP. But I think it will be same as win 2003. You can try the same steps.
|
|

January 19th, 2005, 06:16 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

January 19th, 2005, 06:34 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 19th, 2005, 06:49 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|

January 19th, 2005, 09:19 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
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.
|
|

January 19th, 2005, 09:22 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you guyz!!!
Your messages helped me very much! That was the solution I was looking for! :)
Ciao!!! ;)
|
|

January 20th, 2005, 05:49 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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????
|
|
 |