Windows 7 Forums


Reply
Thread Tools

Ownership of files and folders

 
 
oldbaldguy oldbaldguy is offline
New Member
Join Date: Feb 2010
Location: Dallas/Ft. Worth area
Posts: 1
Thanked: 0
 
      06-23-2010
I have been running Win7 32 bit for several months and dual boot it. I decided to install the 64 bit version on one of my drives to see how it worked and how it would affect the programs I use.

I keep all data files and directories on drives which are separate from OS drives. I have done this for years and it has proved to be a safe way to handle them.

When I installed the 64 bit version, things went well and programs like Photoshop already have 64 bit installs so those programs seem just fine. HOWEVER ... today I went into a data drive to access some video files I am working on ... and got a popup saying that I didn't have permission to access them. When I clicked on the provided link to get permission...I got another popup denying access for that.

So here's the deal. I built the computer. I installed the OS. I installed all the programs. I created all the data. I am the ONLY user on this computer. So how is it that Windows can tell me that I can't access my own files?

I fiddled with the security functions a bit ... following an illustrated tutorial I found in these forums ... and now I have a couple of folders with padlock symbols on them and I haven't figured out how to remove the padlocks.

Is there some master security setting which will cover the entire computer which will let me access my own stuff WITHOUT HAVING TO DO EACH FILE OR FOLDER ONE AT A TIME

??????????????????????????????????????????????????????????????????????
 
Reply With Quote
 
 
 
 
Elmer BeFuddled Elmer BeFuddled is offline
Resident eejit
Elmer BeFuddled's Avatar
Join Date: Jun 2010
Location: Durham UK
Posts: 1,050
Thanked: 203
Send a message via Skype™ to Elmer BeFuddled
 
      06-23-2010
Welcome OldBaldGuy.

I recently had a similar issue after a(nother) fresh install.

I was unable to edit any file contained in the "My Pics" folder. Strangely all the other "My" folders kept on the same separate HDD were A.O.K.

The permissions you had previously were for a different Administrator account or something like that (you know, the s-1-5-21 etc. etc. number that changes (???) in HOT_KEY_USERS).

I made/added a context menu entry using a .reg file

Quote:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\exefile\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

I can't remember for the life of me if I then went into the parent folder/drive properties window and took ownership in there of the folder and all sub-folders.

Any-hows, now back to full viewing/editing capabilities

Last edited by Elmer BeFuddled; 06-24-2010 at 07:16 AM.. Reason: Speeling Mistooks
 
Reply With Quote
 
TrainableMan TrainableMan is online now
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 4,655
Thanked: 887
 
      06-24-2010
The locks tend to be system areas. Sometimes it just doesn't want you to go in that way, instead it expects you to use the new libraries (all they are are pointers to the actual area).

Also it tries to protect your files from other users of the system and users are stored as a Computer/Username. Since you have dual OS you may have used the same username (or maybe you didn't) but even so if the computer names are different then the file ownership would belong to a "different" ID as far as W7 knows.

You can disable UAC which may help.

There is a scrpt you can install called "Take Ownership" which adds your login account with read/write access to every file in every folder under the folder you are sitting on. If you run this on Documents and Settings you may be there 10 minutes waiting for the script to run.
http://www.howtogeek.com/howto/windo...menu-in-vista/

Last edited by TrainableMan; 06-24-2010 at 02:59 AM..
 
Reply With Quote
 
Nibiru2012 Nibiru2012 is online now
Quick Scotty, beam me up!
Nibiru2012's Avatar
Join Date: Oct 2009
Location: Planet X
Posts: 4,852
Thanked: 1073
 
      06-24-2010
Hmmm... all these registry hacks.
 
Reply With Quote
 
TrainableMan TrainableMan is online now
^ The World's First ^
TrainableMan's Avatar
Join Date: May 2010
Location: PA, USA
Posts: 4,655
Thanked: 887
 
      06-24-2010
Hack the planet!

It's the only way to fly!
 
Reply With Quote
 
Elmer BeFuddled Elmer BeFuddled is offline
Resident eejit
Elmer BeFuddled's Avatar
Join Date: Jun 2010
Location: Durham UK
Posts: 1,050
Thanked: 203
Send a message via Skype™ to Elmer BeFuddled
 
      06-24-2010
Quote:
Originally Posted by TrainableMan View Post
It's the only way to fly!
(anag.) 'Tis only the fly way to!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manual arrange files in folders W 7 harryh31 General Discussion 26 04-25-2011 07:28 AM
Take Ownership of Files and Folders - Discussion Ian Article Discussion 3 11-18-2009 08:12 AM
Take Ownership of Files and Folders Ian System Administration 0 11-16-2009 04:00 PM
Show Hidden Files and Folders - Discussion Ian Article Discussion 1 03-30-2009 07:17 PM
Show Hidden Files and Folders Ian Appearance and Customization 0 03-24-2009 07:50 PM


All times are GMT +1. The time now is 01:40 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.

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