Skip to main content
Inspiring
September 21, 2010
Question

Windows permissions file access

  • September 21, 2010
  • 1 reply
  • 496 views

Hiya,

I'm using cfdirectory to list files and subfolders.

Is there a way I can display files for people in a certain group?

People who aren't in the groups cannot see the folders or files.

I've created a group in activedirectory, given it modify/ read&execute/ read access.

However all users can see the files and folders, when they try and download a file they get the windows password prompt.

I'd like them not to see the files and folders at all.

Can anyone help?

Thankyou

    This topic has been closed for replies.

    1 reply

    Owainnorth
    Inspiring
    September 21, 2010

    I certainly don't think it would be simple, as cfdirectory works in the context of whatever user ColdFusion runs as and has no concept of NTFS permissions as such.

    You could possibly do something with createObject("dotnet") and use the actual Windows objects to examine the ACLs on the file then do something with that? Essentially bypass cfdirectory and use the System.IO.Directory classes from .NET to examine the directories and permissions, then use those to list the files they can access?

    Or I may be rambling.