Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Restore/repair the default permissions in vista

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 04-06-2009
Member
 
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.

Reply With Quote
  #2  
Old 04-06-2009
Member
 
Join Date: Nov 2005
Posts: 3,025
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.
Reply With Quote
  #3  
Old 04-06-2009
Member
 
Join Date: Apr 2008
Posts: 3,516
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.
Reply With Quote
  #4  
Old 04-06-2009
Member
 
Join Date: Apr 2008
Posts: 3,292
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?
Reply With Quote
  #5  
Old 01-01-2010
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Restore/repair the default permissions in vista"
Thread Thread Starter Forum Replies Last Post
How to Restore Default Folder/Drive Permissions Paul Thomas Vista Help 5 27-06-2009 12:28 AM
Repair permissions problems GabrieL Operating Systems 4 03-04-2009 01:43 PM
Restore Vista default fonts Anwar Customize Desktop 5 20-01-2009 04:51 AM
restore default security permissions in windows vista? Greer Vista Help 1 19-10-2008 06:47 PM
How can I restore registry from Windows Vista Repair CD? Dakshi Vista Setup and Install 2 29-09-2008 10:49 PM


All times are GMT +5.5. The time now is 07:16 PM.