If you are using windows NT, the answer is "Yep". I'm doing that exact thing
now. Dig around in the TechNet for something called "CACLS". Its a
command-line driven tool for modifying NT ACLs (Access Control Lists). It
comes with some of the NT server tools, I dunno remember where you actually
get 'em from...

In my scenario, here's what I do...

I have a list of users in a database, complete with their NT usernames.
I use CFFILE to write a valid batch file, which will call upon CACLS to
modify the permissions for a given file or directory.
I execute the batch file with CFEXECUTE.

The slick thing about this is that when you use NT ACL security, you set
permissions for the files themselves, not merely web access to the files.

Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center

> -----Original Message-----
> From: John Lucas [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, October 17, 2000 7:32 AM
> To:   Fusebox
> Subject:      password protection for PDF files
> 
> I have a site that is going to use cf to provide user authentication for
> the
> secure area of the website.  That part is the easy one.
> 
> In this secure area, there are going to be some PDF files that can be
> viewed
> by the user as long as they remain a distributor for the company.  Once
> they
> are no longer a distributor, they would no longer have access to these
> files.
> 
> So, it would be easy to control whether they can log in or not to the
> site,
> but is there any way to protect the PDF files since they are not
> coldfusion
> files. What we want to be able to do is prevent bookmarked PDF files from
> being viewed without being logged in.
> 
> I realize that if the user were to save the PDF file locally or print it
> while they had access to the files, that there is no way to control that.
> And, that is fine.
> 
> Is there a way to protect non-cf files using CF?
> 
> Hopefully this makes some sense.
> 
> Thanks,
> John Lucas
> [EMAIL PROTECTED]
> 
> 
> --------------------------------------------------------------------------
> ----
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> the body.
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to