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: Security issues (Access Denied)


16 Mar 2011   #1

Win7
 
 
Security issues (Access Denied)

I've been pulling my hair out over this issue, or should I say, these issues.
Firstly, a a minor issue. When I try to rename folders, or delete folders on my 2nd drive D, windows 7 keeps asking for admin permission. Why? How can I stop it from happening? I am the admin. I've tried taking ownership, granted full access. Still it wont stop asking.

But perhaps the most annoying issue. I was trying to modify my hosts file and no matter what guide I follow, I cant save the hosts file. Always access denied.
I've done the following:

Gave myself full permissions in the security tab.
Make sure I was one of the owners.
Run notepad as admin.

And still I can't save it. I know all this security is for my protection, but when I install Windows 7 with only one account, the admins, I should'nt have to jump through hoops to delete things.

Any ideas?


My System SpecsSystem Spec
.

16 Mar 2011   #2

 

Start 'orb' / Control Panel / (view by category) System and Security / Change user account control settings
- Slide down to, Never Notify

2nd: As for:
Quote:
But perhaps the most annoying issue. I was trying to modify my hosts file and no matter what guide I follow, I cant edit it.
I've done the following:
Do you get an error?
My System SpecsSystem Spec
16 Mar 2011   #3

Windows 7 x64 Ultimate
 
 

Actually the real problem is that your second drive probably has files and folders on it created by another user. I'd guess another user account of yours on another machine or previous install of windows?

So as your CURRENT user you do not have acces to those files without invoking admin privs (You are not a full time admin on your machine when logged into your normal user account).

To stop this you want to take ownership of all the files on your D drive. Then they will all be owned by your new windows 7 user account and you won't have to invoke admin privs every time you touch them.

Search this forum for "Take Ownership". But ONLY take ownership of your own personal files. NEVER try to take ownership of any OS controlled file locations or you will hose your install.
My System SpecsSystem Spec
.


16 Mar 2011   #4

Windows 7 Ultimate RTM (Technet)
 
 

Quote   Quote: Originally Posted by CrazyAwesome View Post
I've been pulling my hair out over this issue, or should I say, these issues.
Firstly, a a minor issue. When I try to rename folders, or delete folders on my 2nd drive D, windows 7 keeps asking for admin permission. Why? How can I stop it from happening? I am the admin. I've tried taking ownership, granted full access. Still it wont stop asking.

But perhaps the most annoying issue. I was trying to modify my hosts file and no matter what guide I follow, I cant save the hosts file. Always access denied.
I've done the following:

Gave myself full permissions in the security tab.
Make sure I was one of the owners.
Run notepad as admin.

And still I can't save it. I know all this security is for my protection, but when I install Windows 7 with only one account, the admins, I should'nt have to jump through hoops to delete things.

Any ideas?
The hosts file is set to read-only. You have to remove that in properties before you can change it, regardless of your permissions.
My System SpecsSystem Spec
16 Mar 2011   #5

Win7
 
 

Quote   Quote: Originally Posted by fseal View Post
Actually the real problem is that your second drive probably has files and folders on it created by another user. I'd guess another user account of yours on another machine or previous install of windows?

So as your CURRENT user you do not have acces to those files without invoking admin privs (You are not a full time admin on your machine when logged into your normal user account).

To stop this you want to take ownership of all the files on your D drive. Then they will all be owned by your new windows 7 user account and you won't have to invoke admin privs every time you touch them.

Search this forum for "Take Ownership". But ONLY take ownership of your own personal files. NEVER try to take ownership of any OS controlled file locations or you will hose your install.
Thats spot on. I'll give it a try and see how it goes

Quote   Quote: Originally Posted by MacGyvr View Post
The hosts file is set to read-only. You have to remove that in properties before you can change it, regardless of your permissions.
In the properties its not read only.
If for example, I try to rename the hosts file, it will ask for admin permissions.


I click continue but the screen doesnt dim and ask for permission like it does with other things. Then I get this:



I am the admin.
My System SpecsSystem Spec
16 Mar 2011   #6

Windows 7 Ultimate RTM (Technet)
 
 

By default it is read-only, so that has been changed at some point in time. Your hosts file is also much larger (more than double) than a normal one should be.

Unless you are logged in as "Administrator," you aren't "the admin"...admin permissions are a little different in Windows 7. You could try enabling the "Administrator" account and logging in that way, but you should not need to as long as you are a member of the Administrators group.
My System SpecsSystem Spec
16 Mar 2011   #7

 
 

Quote   Quote: Originally Posted by CrazyAwesome View Post
I've been pulling my hair out over this issue, or should I say, these issues.
Firstly, a a minor issue. When I try to rename folders, or delete folders on my 2nd drive D, windows 7 keeps asking for admin permission. Why? How can I stop it from happening? I am the admin. I've tried taking ownership, granted full access. Still it wont stop asking.
It's not a good idea to disable UAC to 'Never Notify', as you remove an effective security measure against rogue programs, trojans, etc., allowing themselves to run. I have UAC set to the 2nd from top setting and don't have any issues. If that setting doesn;t resolve the problem, post back.


Quote:
But perhaps the most annoying issue. I was trying to modify my hosts file and no matter what guide I follow, I cant save the hosts file. Always access denied.
I've done the following:

Gave myself full permissions in the security tab.
Make sure I was one of the owners.
Run notepad as admin.

And still I can't save it. I know all this security is for my protection, but when I install Windows 7 with only one account, the admins, I should'nt have to jump through hoops to delete things.

Any ideas?
Ideas:
Have you:
  • Checked to see if the file attribute is set to 'Read Only'?
  • Tried from Safe Mode?
  • Tried making a copy of the file, editing, saving and copying back (admittedly, a bit of hoop jumping)
  • From another user account?
All but the first are a bit unreasonable to expect, but at least it will provide further info.

James
My System SpecsSystem Spec
16 Mar 2011   #8

Win7
 
 

The read only attribute is not checked.
If I make a copy of the file in the same folder, I can delete, edit, rename, all without issue. But I can't do anything with the original hosts file except look at its contents.
I can't delete it or anything. Even if I run CMD with elevated permissions, I keep getting acces denied.
I don't have any other account on this PC except the one I am using.
As for the other suggestion, Ill try it once I have finished tinkering here.
I'm baffled.
My System SpecsSystem Spec
16 Mar 2011   #9

Windows 7 Ultimate RTM (Technet)
 
 

Quote   Quote: Originally Posted by CrazyAwesome View Post
The read only attribute is not checked.
If I make a copy of the file in the same folder, I can delete, edit, rename, all without issue. But I can't do anything with the original hosts file except look at its contents.
I can't delete it or anything. Even if I run CMD with elevated permissions, I keep getting acces denied.
As for the other suggestions, Ill try them once I have finished tinkering here.
I'm baffled.
Who is the current owner of the file?
My System SpecsSystem Spec
16 Mar 2011   #10

Win7
 
 

The owner is my PC and my only account. The copy of the hosts file, I compared all the security settings side by side. They are identical. Yet one I can edit and one I can't.
My System SpecsSystem Spec
Reply

 Security issues (Access Denied)




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:57 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33