Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Accidently changed security permissions for a file.


07 Sep 2011   #1
darksoul5150

Windows 7 Home Premium
 
 
Accidently changed security permissions for a file.

When editing permissions in the "Security" tab inside properties I messed up and edited my own to not be able to change the file anymore. Can someone tell me how to fix this.(this is a re-post because I posted in the wrong section before.)




Attached Images
  
My System SpecsSystem Spec
08 Sep 2011   #2
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Hi,

Can you login as adminsitrator, and change the permissions then?

Regards,
Golden
My System SpecsSystem Spec
08 Sep 2011   #3
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.1 MATE (64 bit)
 
 
Inheritance

Can you go to a higher level and cascade the permissions down (apply to child objects)?
My System SpecsSystem Spec
08 Sep 2011   #4
darksoul5150

Windows 7 Home Premium
 
 

The account I'm using is already administrator. I tryed "net user administrator /active:yes" in command prompt. Even that administrator account but is unable to change the security setting on the file. If I could go to a higher level of access I would but administrator is the highest state unless there is a higher one I am unaware of.
My System SpecsSystem Spec
09 Sep 2011   #5
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.1 MATE (64 bit)
 
 
My Bad

Quote   Quote: Originally Posted by darksoul5150 View Post
The account I'm using is already administrator. I tryed "net user administrator /active:yes" in command prompt. Even that administrator account but is unable to change the security setting on the file. If I could go to a higher level of access I would but administrator is the highest state unless there is a higher one I am unaware of.
I explained that poorly.
I meant higher directory level.

Oh-oh.
The etc directory is owned by "Trusted Installer", as a result I don't think that you'll be able to modify the permissions (i.e. add yourself back in again).

Do not remove "Trusted Installer".
If you remove "Trusted Installer", you won't be able to add it back in and that will cause trouble.
You might be able to restore your rights using icacls (Command Prompt) but I've never had any success using it.

I deleted "Trusted Installer" (when I was messing around with the W7 betas) and I was forced to restore Windows from my backup image.

It looks like you'll have to hope one of the experts can suggest a solution.
Sorry.
My System SpecsSystem Spec
09 Sep 2011   #6
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Quote   Quote: Originally Posted by darksoul5150 View Post
The account I'm using is already administrator.
Hi,

Can we just check something quickly? Can you run the following commands in a cmd window, and then take a screencapture of the result and post it here?

net user

and also

net localgroup

Regards,
Golden
My System SpecsSystem Spec
09 Sep 2011   #7
darksoul5150

Windows 7 Home Premium
 
 

Here you go Golden, and if I have messed something up terribly bad, restoring my PC won't be so bad just need to back up some of my important files.


Attached Images
 
My System SpecsSystem Spec
09 Sep 2011   #8
logicearth

Windows 8.1 Pro (x64)
 
 

Should not have been modifying permissions to begin with...Without knowing exactly what it is you changed, would be hard to give you step by step instructions. Did you set any DENY permissions? Or just removed your accounts?
My System SpecsSystem Spec
09 Sep 2011   #9
lehnerus2000

Windows 7 Ultimate SP1 (64 bit), Linux Mint 17.1 MATE (64 bit)
 
 
IMO, that's a bit harsh

Quote   Quote: Originally Posted by logicearth View Post
Should not have been modifying permissions to begin with...Without knowing exactly what it is you changed, would be hard to give you step by step instructions.
IMO, that's a bit harsh.
The OP may have just "twitched" at the wrong moment and clicked on the wrong button.
It's happened to me.

It is a bit like Linux forum denizens saying RTFM (which is generally useless anyway).
Most modern software help assumes that you already know, how to do, what you are asking for help about!
If I don't know how to do something, I invariably I have to do an Internet search (especially for Linux help).

The only way to find out what things do, is to try them out.

Knowing the theory, is only half the battle.
When I worked as a technician, I used to be sent projects by engineers (that I had to construct) and a lot of them were never going to work.
Engineers should be well versed in theory (they got paid a lot more than I did, for that very reason).

IMO, the real lesson is:
When you are not sure of the outcome,
ALWAYS make a backup image,
BEFORE messing around with things.
My System SpecsSystem Spec
09 Sep 2011   #10
Golden

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64
 
 

Mmm. I'm at a loss. Does anyone else have a suggestion...........

One other thing you might try that I have just thought of:

In an elevated command prompt, type this:

sfc /scannow

and hit enter. Copy and paste the window contents here when it has finished, and then reboot the PC. Is there still a problem? If so, re-run the sfc command another two times, rebooting after each run.

If that doesn't work, then perhaps a restore might be in order.

Regards,
Golden
My System SpecsSystem Spec
Reply

 Accidently changed security permissions for a file.




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:28 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App