Results 1 to 3 of 3

Thread: screwed up computer with cacls

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    243

    screwed up computer with cacls

    I was mucking around with my computer and i typed something like cacles /t in.

    Now i can't access the c: or windows folders. How to i give me full access to everything on the hard disk agin?
    Scott
    **********
    Visit my web page at www.hyphenex.ugtech.net

  2. #2
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    There is no such command as cacles.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  3. #3
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Ooo, found it, that's a nasty little command. Here's the stuff from Help and Support:

    CaclsDisplays or modifies discretionary access control list (DACL) files.

    Syntax
    cacls FileName [/t] [/e] [/c] [/g User: permission] [/r User [...]] [/p User: permission [...]] [/d User [...]] (Minus space between : and p)

    Parameters
    FileName
    Required. Displays DACLs of specified files.
    /t
    Changes DACLs of specified files in the current directory and all subdirectories.
    /e
    Edits a DACL instead of replacing it.
    /c
    Continues to change DACLs, ignoring errors.
    /g User: permission (Minus space between : and p)
    Grants access rights to the specified user. The following table lists valid values for permission. Value Description
    n None
    r Read
    w Write
    c Change (Write)
    f Full Control

    /r User
    Revokes access rights for the specified user.
    /p User: permission (Minus space between : and p)
    Replaces access rights for the specified user. The following table lists valid values for permission. Value Description
    n None
    r Read
    w Write
    c Change (Write)
    f Full Control

    /d User
    Denies access for the specified user.
    /?
    Displays help at the command prompt.
    Remarks
    Use the following table to interpret the results. Output ACE applies to
    OI This folder and files
    CI This folder and subfolders
    IO The ACE does not apply to the current file/directory.
    No output message This folder only
    (IO)(CI) This folder, subfolders and files
    (OI)(CI)(IO) Subfolders and files only
    (CI)(IO) Subfolders only
    (OI)(IO) Files only

    You can use wildcards (that is, ? and *) to specify multiple files.
    You can specify more than one user.
    I'd say to fix it, you'd type in cacls c:\ /p username:f
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width