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.

10 Sep 2011   #11


Just a shot in the dark, but if you're going to reinstall, I'd first try [creating and] logging into another admin account to see if you can edit permissions or just delete the file and make a new one (it's just a few lines of text at default, which is what you'll wind up with if you reinstall anyway). You may also be able to delete it using a bootable CD if you have one.

My System SpecsSystem Spec
10 Sep 2011   #12

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86

Try this, it resets all the Security Settings in Windows 7 to the defaults.

Start Menu - type in Search box -> CMD, then at the top - Right Click on - RUN AS ADMIN

Type or Copy and Paste this at the prompt :

secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

Hit Enter.

Since you say you can easily restore if things go bad..........
My System SpecsSystem Spec
10 Sep 2011   #13

W7 Ultimate SP1, LM18.3 MATE, W10 Home, #All 64 bit
Ctrl + Shift + left mouse button

Ctrl + Shift + left mouse button

You can provoke an elevation of your privileges (when clicking on items which only require a single mouse click) such as:
  • Pinned Taskbar items.
  • Start Menu items.
  • Start Menu Search results.
My System SpecsSystem Spec

10 Sep 2011   #14

MS Windows 7 Ultimate 64-bit SP1

Method 1.
You need to be logged in as Administrator for this method.

To take control of your system's hosts file, go to the properties, select Security tab, click on Advanced button in the bottom of the dialog box.

In the second dialog box "Advanced Security Settings for hosts" go to the Owner tab press "Edit" button.

You will see that the System account is the default owner of this file. Now take ownership of the file.

After taking ownership of the file you can change the permissions for any user listed there. You can also add new user account or delete existing accounts from the permissons dialog box. Set the permissions to your satisfaction and close all the dialog boxes by clicking OK buttons.

Method 2.

etc/hosts file is just a text file which can be modified easily. I am including the contents of the hosts file from my windows 7 home premium system.

# Copyright (c) 1993-2009 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# # source server
# # x client host
# localhost name resolution is handled within DNS itself.
# localhost
# ::1 localhost

If your hosts file is not working you may create a new text file named "hosts" without extension and copy the above contents in to the file and save it. You can replace your system's hosts file with this file.
My System SpecsSystem Spec

 Accidently changed security permissions for a file.

Thread Tools

Similar help and support threads
Thread Forum
World Of Tanks replay file accidently changed to media file
i have accidentally changed my world of tanks replay file to a media file and in trying to fix the problem into an adobe file i an wondering how to change this file back to a world of tanks file so i can veiw and post my replays. if anyone can help me reply or email me the fix at...
File security permissions messed up by chkdsk
Some days back my chkdsk started running after a reboot. Everything was fine until it found some errors and i got this line... Replacing invalid security id with default security id for file 97. Replacing invalid security id with default security id for file 98. Replacing invalid security id...
System Security
Correct File Security / Sharing Permissions
I am having difficulty setting up an advanced file sharing setup with Windows 7 x64 acting as the host machine. I have 3 users that i want to access the share. User1 = Full Rights User2, User3 = ability to run and execute all folders, but only write, modify their own folders. Directory...
Network & Sharing
SwKotor problem with changing File due to Security permissions
Went into to the swkotor.ini file for the game to do a bit of tweaking but my computer won't let me change anything because i "Don't have permission from the administrator". Problem is that I AM the admin on this computer cuz i am the only person who uses it. I've had this problem before with other...
Changed file permissions now cant change them back
Hello i am running win 7 ultimate x64 and have this major problem, here is what i did: i needed to pawn my laptop for a short time and didnt want my files to be viewed by anyone while it was not in my possesion, so what i did i changed the file permissions of my c: drive so that only admin had...
General Discussion

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 07:22.
Twitter Facebook Google+