Results 1 to 5 of 5

Thread: Restore/repair the default permissions in vista

  1. #1
    Join Date
    Mar 2009
    Posts
    92

    Restore/repair the default permissions in vista

    I have installed windows vista on my computer which runs fine. Is there any tools, any setting to change or restore the default permissions on Vista. Any recommendations and suggestions are appreciated.

  2. #2
    Join Date
    Nov 2005
    Posts
    3,026

    Re: Restore/repair the default permissions in vista

    ICACLS is tool to restore/repair default permission in vista. This tools Displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories. For exmaple this syntax [/deny <Sid>:<Perm>[...]] : Explicitly denies specified user access rights. An explicit deny ACE is added for the stated permissions and the same permissions in any explicit grant are removed.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Restore/repair the default permissions in vista

    To restore your operating system to the original installation default security settings, follow these steps:
    • Click Start, click Run, type cmd, and then press ENTER.
    • In Windows XP, type the following command, and then press ENTER:
    • secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
    • In Windows Vista, type the following command, and then press ENTER:
    • secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
    • You receive a "Task is completed" message and a warning message that something could not be done. You can safely ignore this message. For more information about this message, see the %windir%\Security\Logs\Scesrv.log file.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,295

    Re: Restore/repair the default permissions in vista

    If you have admin rights, you could always become the owner of the files and apply the permissions whatever you like... unless what you want is default permissions.Cacls has no ability to reset permissions to the default, it does not know any default level.

    Check this thread for more information :
    default NTFS permissions - 2003 - vista PE?
    restore default security permissions in windows vista?

  5. #5
    Join Date
    Jan 2010
    Posts
    1

    Re: Restore/repair the default permissions in vista

    I had inadvertently (thru quite a comedy of errors) revoked access by the Administrators group, all Administrator users, all other users with the exception of the Everyone group to the C: drive via the Security tab of the properties of the HDD. I had also revoked Full Control permissions from the Everyone group. This didn't remove any accounts from the system but it severely limited access by any user (including all Admin users, new or pre-existing since they now fall into the 'Everyone' group) to the C: drive (which was the only physical partition on the computer).

    When applying a file permissions change such as this, Windows applies it to all subfolders. But subfolders or not, limited "admin" access to the C: drive is entirely unacceptable.

    To restore the permissions to the C: drive I used the secedit tool as described above by Calvin on 4/6/2009. BTW, those instructions are summarized straight from the Microsoft Support pages (usage instructions for secedit). I used the command he specified for Vista which didn't solve my problem, directly, but worked with a little modification. My problem revised the security settings of the file system on the C: drive. Looking through the Microsoft template .inf file shipped with Vista, there are very few changes that are applied from the template to the file system permissions. In the end, the only reason I was able to restore the system was because Microsoft refuses to alter permissions in the system directories (including the directory where the secedit tool is stored). This allows the Administrator to run the tool truly as the administrator - regardless of what file permissions may have been set by the user in neighboring areas.

    Since it didn't solve my problem (this was still the correct tool for the job), but probably fixes other, less serious problems, I had to copy the template .inf file mentioned in the command line (to the same directory with a slightly different filename), and add 2 entries in the [File Security] section (an entry in an INF section appears as a single line below the section header, prior to the next section header. sections are declared with square brackets [, ]). The added entries are as follows:

    Code:
    "\",0,"D:P(A;CIOI;GRGX;;;BU)(A;CIOI;GA;;;BA)(A;CIOI;GA;;;SY)(A;CIOI;GA;;;CO)"
    "C:",0,"D:P(A;CIOI;GRGX;;;BU)(A;CIOI;GA;;;BA)(A;CIOI;GA;;;SY)(A;CIOI;GA;;;CO)"
    This applies the same security file permissions found on the \Windows directory to the entire hard drive (excluding protected system folders as mentioned above). This granted Full Control back to the Administrators group as well as other Administrative user accounts.

    This solution worked quite well and gave a 'default' appearance of the hard drive permissions for Windows "out of the box". At the very least, it restored Administrative access back to C:. It appears that Vista deletes this modified template file (foreign item), as I've been unable to find it again.

    Hope this is helpful.

Similar Threads

  1. How to Restore Default Folder/Drive Permissions
    By Paul Thomas in forum Vista Help
    Replies: 5
    Last Post: 27-06-2009, 12:28 AM
  2. Repair permissions problems
    By GabrieL in forum Operating Systems
    Replies: 4
    Last Post: 03-04-2009, 01:43 PM
  3. Restore Vista default fonts
    By Anwar in forum Customize Desktop
    Replies: 5
    Last Post: 20-01-2009, 05:51 AM
  4. Replies: 1
    Last Post: 19-10-2008, 06:47 PM
  5. How can I restore registry from Windows Vista Repair CD?
    By Dakshi in forum Vista Setup and Install
    Replies: 2
    Last Post: 29-09-2008, 10:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,632,111.91769 seconds with 17 queries