Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to secure access to folder

Status
Not open for further replies.

CBOIT

IS-IT--Management
Jul 9, 2010
22
US
Hello everyone! I just want to thank everyone for taking the time to read my thread!

Here is the scenario:
I am trying to limit activity in a particular shared folder. We cannot modify the security, or it will be a hassle when the IT staff attempts to access it from within a regular user account. I would like to create a script that, when launched, would prompt the user for a password. If the password is correct, the folder would be launched for them . . . if the password was incorrect, the script could report an error then close. Essentially, I would be password protecting the folder.

Here is what I have so far:

____________________________________________________________
<html>
<head>
<body>
<h2>Tech Access</h2>
<form name="Validation">
<table border="0" width="300">
<tr>
<td width="80">Password:</td>
<td><input type="password" name="pwl" size="10">
<input type="button" value="Submit" name="Submit"
<OnClick="????????????">

</td>
</tr>
</table>
<script>


</form>
</body>
</html>
____________________________________________________________

If you will notice, I have attempted to mask the entry on the password. I would like to retain this feature.

Any help would be GREATLY APPRECIATED!



[&infin;]MP
 
Please further explain how you intend to implement the security on this. I don't see what you are planning as actually providing any security. A person knowing the path to the folder could just map to it and bypass your script.

Assign permissions properly with NTFS and let your IT staff use RUNAS to access it when working at a client PC.

I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
mardmac,
Well, the non-IT staff is really not very sophisticated (tech savvy might be nicer), so I'm not worried about them typing the path . . . but I was attempting to make it easier on the IT staff. I have been struggling with the RUNAS command . . . I am unable to have explorer open a certain folder.

[&infin;]MP
 
what is the purpose of the folder? Do the IT people just need to access it for downloads? If so you could make it a webDav folder.

I hope that helps.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Mark,
Well, we use it to store installations, configuartion files, and the likes.

[&infin;]MP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top