Setting windows directory security with ColdFusion

If one was to build an application that could be creating directories on a windows system.  Is there any way to set specific permissions on that newly created directory.  I understand that the <cfdirectory...> tag has the ability to set the UNIX permissions.  But, of course, windows is not so simple.
If this is at all possible, would it matter if the directories being created where on a file server and not directly on the web server.
TIA
Ian

Never tried it, but don't see why it wouldn't work - how about using .NET objects through Coldfusion? I had to create a VB.net program recently which sets NTFS permissions, and the code was thus:
     Dim dirInfo As New DirectoryInfo(homePath)
     Dim dirSecurity As DirectorySecurity = dirInfo.GetAccessControl()
     Dim accessRule As New FileSystemAccessRule(ntUsername, FileSystemRights.FullControl, _
           InheritanceFlags.ContainerInherit + InheritanceFlags.ObjectInherit,
                      PropagationFlags.None, AccessControlType.Allow)
     dirSecurity.AddAccessRule(accessRule)
     dirInfo.SetAccessControl(dirSecurity)
Don't know if you could do that through CF? As long as the user context running CF has permissions, I'd forsee no issues doing it over a network.
O.

Similar Messages

  • Windows Integrated Security with SSRS, Sharepoint 2013 and SSAS over http

    I have the following setup and problem:
    Sharepoint 2013 with SSRS in Sharepoint integrated mode
    SSAS 2012 SP1 with http access (IIS + msmdpump) enabled on the same box as SSAS
    Every component I have tried works fine with this (PerformancePoint, .bism connections, SSIS packages etc.), connecting over http using Kerberos and windows integrated authentication.
    SSRS (.rsds) connections in Sharepoint fail a connection test when using the same http connection string + Windows integrated authentication which works for everything else. The error is: "Unsupported data format: -> Microsoft.ReportingServices.DataExtensions.AdomdTestConnectionException:
    Unsupported data format:"
    SQL server profiler shows that the windows username is reaching the SSAS server is all cases.
    Kerberos delegation is set up for SSAS and is working.
    Switching the .rsds connection to saved credentials (same user as I tried with Windows integrated auth) works fine and SQL server profile logs look the same as the Windows integrated case.
    So, everything seems to work with Kerberos + http apart from SSRS ... any idea welcome. I did read that SSPI is not supported for http connections but then again, there are sites which give examples of exactly such connection strings. I can't find any
    mention of this case or exact problem anywhere ...

    For information, this was fixed by applying the .NET 4.5.1 patch as advised by MS support. Now http connections from integrated mode SSRS work ok.

  • How to set dimension level security with multiple levels

    Hi,
    We have hierarchy with Level 0 codes to Level 4 codes.
    For e.g.
    Region 1 : Level 0 code 10000, Level 1 code 10001, Level 2 code 10011, Level 3 code 10111, Level 4 code 11111
    Region 2: Level 0 code 20000, Level 1 code 20001, Level 2 code 20011, Level 3 code 20111, Level 4 code 21111
    Region 3: Level 0 code 30000, Level 1 code 30001, Level 2 code 30011, Level 3 code 30111, Level 4 code 31111
    From SSAS role administration, I would like to assign a user permission to all Region 1 codes and only Level 3 code (30111) of region 3.
    How and where do I set this kind of permission?
    Thanks in advance.
    Manisha

    see
    http://www.mssqltips.com/sqlservertip/1834/introduction-to-dimension-security-in-sql-server-analysis-services-ssas-2005/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • GOTCHA's with Setting up ADF Security with JDev 11.1.1.6.0

    If you're getting into ADF security, you're probably going to want to get rid of that ugly default login.html page. I mean, it gets the job done, but we want something a little better. And if you want something a little better and you're using JDev 11.1.1.6.0, it behooves you to read this post!
    First off, get acquainted with these four posts. All good stuff. They'll walk you through the 1st half of what you need to know. Y'know, the non-Gotcha half.
    http://one-size-doesnt-fit-all.blogspot.com/2010/07/adf-security-revisited-again-again.html
    http://myadfnotebook.blogspot.com/2011/11/adf-security-basics.html
    http://andrejusb.blogspot.com/2010/11/things-you-must-know-about-adf-faces.html
    http://java2go.blogspot.com/2010/12/creating-centered-page-layout-using-adf.html
    Are you getting either of the following errors?
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: {0}.
    oracle.security.jps.JpsException: java.lang.IllegalArgumentException: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl
    Error 500--Internal Server Error
    java.lang.RuntimeException: Cannot find FacesContextI'll show you where they're coming from. Follow along.
    1) Create a new application.
    2) Create three .jspx pages called login, error, and welcome.
    3) Generate PageDef files for them by right-clicking on the file and selecting "Go To PageDefinition". You'll want these so that you may apply security against them.
    4) Right-Click on your Application and select Secure->Configure ADF Security
    5) ADF Authentication and Authorization -> Form Based Authentication (Use the search symbol to select your created login and error pages. Should be something like "/faces/login.jspx") -> No Automatic Grants -> Finish
    Right-Click your welcome.jspx and select run. You'll get this error before your web page opens up in your browser and then proceeds to wig out.
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: {0}.
    oracle.security.jps.JpsException: java.lang.IllegalArgumentException: oracle.security.jps.internal.core.principals.JpsAnonymousRoleImplThat just won't do. Let's fix it, shall we?
    6) Open your newly JDev created jazn-data.xml file. It's located in the Application Resources panel (usually located by Data Controls and your Projects expandable panels)
    7) Resource Grants -> Resource Type (Web Page dropdown) -> error page should have a key symbol by it. Delete the anonymous role in the "Granted To" column. Now click the green button to add an Application Role. Huh, there's TWO of them? How bout that? Looks like we're going to have to delete some XML code!
    8) Click the Source tab on the bottom of the page to open up the XML View. You'll see the following piece of erroneous code. Erroneous, I say!
      <policy-store>
        <applications>
          <application>
            <name>SecurityError</name>
            <app-roles>
              // Hello, I'm the app role that has sucked away two hours of your life that you can never, ever get back
              <app-role>
                <name>anonymous-role</name>
                <class>oracle.security.jps.internal.core.principals.JpsAnonymousRoleImpl</class>
                <display-name>anonymous-role</display-name>
              </app-role>
             // Whew, the end of that app role
            </app-roles>
            <jazn-policy>
              <grant>9) You're going to want to delete that app role XML
    10) Go back into your jazn-data.xml file and create some users. For example, bob and jane. Create an Enterprise role called "admin". Put bob and jane as members into this Enterprise role. Create an Application role called managers. Map managers to your Enterprise role admin.
    11) Go back to the Resource Grants tab -> Resource Type (Web Page) and delete any "Granted To" authorizations that may assigned to any of the pages. Assigned a "Granted To" application role of "anonymous-role" to the error and login pages. Assign "managers" to welcome.
    12) Run your welcome page. Yay, the error is gone. How sweet it is.
    Now you want to refactor/move your login and error page somewhere else? Great, just right-click and select factor. Refactor to some place like /public_html/jspx/<your login page>.jspx. Re-run your welcome page.
    // You fool!
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not FoundThat's not so good. Let's fix that.
    1) Open up web.xml. It's located at ViewController/WEB-INF/web.xml.
    2) Click the security tab and you'll see Form-Based Authentication with a login page and error page. Click that Search glass and locate your new file. Do the same for the error page. You should see something like "/jspx/login.jspx" come back.
    3) Re-run your welcome page.
    // Suckered AGAIN!
    Error 500--Internal Server Error
    java.lang.RuntimeException: Cannot find FacesContextThis is a tricky one. The search icon brings back a faulty address. Since we're using a .jspx page, it needs to be "/faces/jspx/login.jspx". Repeat for the error page. Re-run your welcome.jspx.
    Ahh!! Now THAT's how we do it in Kingsport!
    Finally, a custom .jspx login works. Now what are you doing here? Shouldn't you be playing some Diablo 3?
    Will

    Ha :-)
    Point being good summaries like yours tend to get lost on the forums because of the volume of posts. With a blog people have the chance to subscribe to your posts so it's just a better vehicle all round for posting content to help others.
    I highly recommend writing blogs even if it's for scratch notes, because you'll learn a lot in structuring your thoughts. It's also a really good way to get noticed in the community because bloggers stand out.
    But your call, no pressure of course ;-)
    CM.

  • Help with setting up wireless security with mac

    We have just set up a Linksys WRT54G on a pc, and it connects to the internet fine. the problem is, anyone can connect.
    I do not understand how to set up a password for this so no one can leach off my internet connection.
    I tried to put in a code but it didnt work.
    is there a step by step way to do this?

    FAQs are on the linksys support pages. For wireless security there are a few. One is here:
    http://linksys.custhelp.com/cgi-bin/linksys.cfg/php/enduser/std_adp.php?p_faqid=759
    However, I would not configure WEP as described there but WPA or better WPA2. New iMacs support WPA2. WEP can be cracked within a few minutes.
    If it still does not work, please post the exact settings you are using in your router (Wireless tab and Wireless Security tab) and the settings you are trying on your mac.

  • I want to get and set windows system time through lab view

    Hi
    I want to get and set windows system time with the help of lab view 8.5.
    please help me out.
    ekanth

    You can use the call library function node. Once you drop it on your block diagram double click it and you will be able to select the dllyou want to use. Choose kernel32.dll and you will see methods listed called getsystemtime and setsystemtime. Use those
    CLA, LabVIEW Versions 2010-2013

  • HT2506 Hello I'm unable to open any pdf's with preview window opens up with message file couldn't be opened because you don't have permission to view it (none of the pdf's have any security thanks if you can assist

    Hello this week I'm unable to open any pdf's with preview, when I select to open a window opens up with message "file couldn't be opened because you don't have permission to view it" none of the pdf's have any security thanks if you can assist

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Can i use an external hard drive in windows to add additional storage after my initial partition is set up. i want to add a 500 GB hard drive to use with my windows. I set windows up in boot camp with a 50 GB partition?

    can i use an external hard drive in windows to add additional storage after my initial partition is set up. i want to add a 500 GB external hard drive to use with my windows. I set windows up in boot camp with a 50 GB partition? I now want to add another 500 GB?

    Yes. Windows supports external USB drives.

  • PS CS6 has a different set of installed fonts than my old PS CS4.  How do I get my old fonts back?  Don't like most of the CS6 fonts.  Dell Precision, Windows 7.  Does PS use the fonts in the Windows directory or does it use its own?  A lot of my preferre

    PS CS6 has a different set of installed fonts than my old PS CS4.  How do I get my old fonts back?  Don't like most of the newer CS6 fonts.  Dell Precision, Windows 7.  Does PS use the fonts in the Windows directory or does it use its own?  If so, where are they in the directory?  A lot of my preferred fonts show in the Windows directory but not in Photoshop, which does not display them within the program.  Please help.  If I get free fonts (NOT CC fonts) from elsewhere, where do I put them for Photoshop[ CS6 to use them?  Thanks.

    All versions of Photoshop get their fonts from your OS.  Just install any missing font wherever Windows keeps fonts.
    I don't do windows myself.

  • I changed permission setting on main disk...took forever now when I bootup I get the chime...apple icon...fan noise...thats it...internal drive is broken...no Mac install disk..I have a windows XP desktop with installation disk..if I was to get external d

    I changed permission setting on main disk...took forever now when I bootup I get the chime...apple icon...fan noise...thats it...internal drive is broken...no Mac install disk..I have a windows XP desktop with installation disk..if I was to get external drive ...could I use windows XP styartup disk just to boot the "17"Powerbook-G4...have no intention of downloading XP on the Mac...just want to boot it up...or is there a way to boot the Mac from the XP desktop...cables...etc?

    Hi Romko23, just pasted info from manual...PowerBook G4 "17"  5.3
    Your PowerBook comes with a minimum of 512 megabytes (MB) of 533
    MHz Double Data Rate (DDR2) Synchronous Dynamic Random-Access Memory
    (SDRAM) installed. Both memory slots can accept an SDRAM module that meets the
    following specifications:
    Â Double Data Rate Small Outline Dual Inline Memory Module (DDR SO-DIMM) format
    Â 1.25 inch or smaller
    Â 512 MB or 1 gigabyte (GB)
    Â 200-pin
    Â PC2-4200 DDR2 533 MHz Type RAM
    PS my keyboad is loose...I tighten the tiny screws...only...once ...tried  all the key-strokes...Comand-option..P-R.....safe-mode... etc...Mac only reacted ...once...right after.. I tightend K-board >>C-OpT- P-R...mac chimed twice...the Apple icon in grey screen got smaller....now after trying ...keyboard .boot short cuts 10 times..nothing...it chimes ...grey screen....apple in window...fan noice ....thats it...do you think I need to tighten screws...again,
    I actually think when I was changing permissions...on entire it was taking so ong...20 min...I just hit power,,shut it down...when it wasn't done...no patience.,...just thought of something ...sounds important...whern I resgisted on this site..I tried to use my Powrbook login name ..got message.... .. blocked...Secury problem....that has to be the problem..blocked..how do I unblock?
    Message was edited by: CMK1

  • I would like to set up a homegroup with a new Macbook Pro and 2 Windows PCs.  The PCs are wired to an Airport Time Machine and the Mac is wireless. All computers have internet through the Airport Time Machine.

    I would like to set up a homegroup with a new Macbook Pro and 2 Windows PCs.  The PCs are wired to an Airport Time Machine and the Mac is wireless. All computers have internet through the Airport Time Machine.

    The method for setting up file sharing is described here:
    http://homepage.mac.com/rfwilmut/notes/sharing.html

  • How to set window.status when returning to a page with back button/list?

    It is easy enough to set window.status to application-oriented information when loading a page: do it in a function which is the onload handler for the page's body element. But, when returning to this window from another window with the second window's back button, or selecting the first window from the second window's back list, window.status gets set to browser-oriented information, usually the string "Done". Is there any means by which I can set window.status to application-oriented information when returning to the window via another window's back button/list? What would be really great is if there is an event handler like this:
    window.onreturnviaback = onreturn_via_backhandler;
    Any ideas?

    How about:
    - (void)viewWillAppear:(BOOL)animated
    I use that a lot.

  • HT1689 me and my husband both have iphones 4 on the same itunes account but he cannot purchase anything cuz it keeps sayin its a new device and he needs to answer security questions.the questions are not what we set up the acct with. help!

    My husband and I both have i phone 4 on the same itune acct but his phone is saying its a new device and will not let him buy anything off of our acct without answering security questions.  these questions are not the ones we set up the acct with. my iphone device is not having this problem. Help!

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • Can i set up remote desktop with my Mac Air and Windows 7 HP desktop?

    I am wanting to set up remote desktop with my Mac Air and HP windows 7 home edition desktop.  Is this possible and how do I begin setting this up?
    Thanks for the help!

    There is an app in the Mac App Store to use Microsoft Remote Desktop with a Mac: https://itunes.apple.com/us/app/microsoft-remote-desktop/id715768417?mt=12
    But according to their support site it requires Pro, Enterprise, or Ultimate in the Windows 7 side. http://technet.microsoft.com/en-us/library/dn473006.aspx
    If it was me, I would first look into Teamviewer to see if it will do what you need. It does work between Mac and Windows and it is free for non-commercial use. http://www.teamviewer.com/en/index.aspx

  • I just set up my windows 7 pc with icloud.  I have 2 calendars on icloud with different appointments.  How do I get them all on one claendar shared with ipad

    I just set up my windows 7 pc with icloud and connected it to my ipad and iphone.  I noticed that I have 2 icloud calendars on my pc.  Neither one of them has all my events on it, so I have to look at both to see what is going on.
    How do I get everything on one calendar?????

    Hello
    I think i find the problem, the Microsoft Proxy. If you use a Microsoft Proxy then it's not going with the iCloud Drive Client under Windows. I turn off the proxy in the IE and then it's going with the iCloud Drive Client.
    The problem is, the iCloud Drive Client take the IE proxy (if it set in the IE), in other sync client like Dropbox oder OneDrive you can select the proxies (no proxy, default proxy, manually proxy) and this is in the current version of the iCloud Drive client not possible.
    I hope Apple make this possible in a future release of the Windows client also with the option to change the location to store the data (i think under C://user/profiles is not so good for user with a SSD-harddrive).
    regrads
    Steve

Maybe you are looking for