adding rights to a few files

Posted on 2005-04-06
Last Modified: 2010-03-18
I have a program that will not run unless the user has admin rights to five files in the windows directory c:\windows

I want to set the domain users or the local users group so that they will have admin rights to all five of these files.  I figured there was some switches i can use with the net localgroup command but im not sure.  Let us assume that the files are file1, file2, file3, file4 and file5 all in the windows directory.  Let us also assume that the domain is named mydomain.  I have the ability to push the script out i just need to know a script that will run.  So basically if the script will work from a local machine it will work accros my domain.  Any help would be appreciated.
Question by:hartnessjr
    LVL 95

    Expert Comment

    by:Lee W, MVP
    You need to use CALCS or XCALCS.

    cacls filename /e /c /g "domain users:F"

    Author Comment

    could you expand on that leew?  what do the switches do  and what is the :F for .. along with will i need to do one of these lines for each file.. such as

    cacls c:\windows\file.txt /e /c /g "domain users:F"

    LVL 95

    Accepted Solution

    Just type cacls /? - all information on usage is there.

    In short:

    /e - edit the ACLs instead of defaultly replacing them
    /c - continue on error
    /g - grant "domain users:F[ull Control]"

    ACLs = Access Control Lists

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
    Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now