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
Shibumi

Win7/Prem/64bit
 
 

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
Bill2

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
lehnerus2000

W7 Ultimate SP1, LM18 MATE, W10IP VM, 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
rraod

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:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 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
Reply

 Accidently changed security permissions for a file.




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
Accidently changed all program defaults to winrar
Hey guys i have been reading on here b4 posting, but what's happened to me hasn't been answered. I hastily clicked to open a .exe that was most likely a virus but wasnt detected as one. The greyed out always open this program as a box was ticked. and now every .exe file tries to open using...
General Discussion
Changed a file Association and it changed everything to a link file
LIke an idiot I changed a associate file and it has turned everything into a lnk so I cant open any programs or anything at all any solutions would be greatly appre:cry:ciated
General Discussion
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...
Gaming
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 20:04.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App