Help!

Denied permission to access folders

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security RSS
Next:  Two manifests snd UAC : why o asks for elevation ..  
Author Message
Jack K
External


Since: Apr 15, 2007
Posts: 11



PostPosted: Fri Jun 01, 2007 2:17 am    Post subject: Denied permission to access folders
Archived from groups: microsoft>public>windows>vista>security (more info?)

I recently purchased a new external hard drive and I set about transferring
files from my old XP computer to my new hard drive that I then connected to
my Sony Vaio laptop. Most files on the new hard drive are accessible on my
Vista laptop, but a large group (100 Gig) of video editing folders and files
are not accessible. I get these messages:

"You don't currently have permission to access this folder. Click "continue"
to gain access."

Then "You have been denied permission to access this folder - To gain access
you will need to use the security tab."

I have tried to follow the instructions on the help file: "Take ownership of
a file or folder", but although I have at least managed to get the video
files visible, Windows Media Player cannot play them. I can't do anything
with these files, not even delete them or copy them!!

Can anyone give me some advice please, this unexpected problem is driving me
nuts!

Thanks, Jim
Back to top
Jimmy Brush
External


Since: May 11, 2007
Posts: 352



PostPosted: Fri Jun 01, 2007 2:17 am    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

This is a common problem with files that you created from another
installation of Windows.

This has to do with the security settings that Windows XP applied to
these files. Since they were created from your user account in XP,
they do not apply to your user account in Vista, and so you are denied
access in some circumstances.

To fix this, you can follow these steps:

- Click Start
- Type: cmd
- Right-click cmd when it appears
- Click Run As Administrator
- Change location to the folder you need access to (e.g. cd e:\folder)
- Type: takeown /F . /R /A /D Y > NUL
- Type: icacls . /grant USER:(OI)(CI)(F) /L /T /Q
(Where USER is your username - you will only have access from your
XP and Vista machine in this case)
(Or, replace USER with Users if you want anyone [on any computer
your hard drive is plugged into] to have full access to these files)

- JB

On Thu, 31 May 2007 22:17:31 +1200, "Jack K" wrote:

>I recently purchased a new external hard drive and I set about transferring
>files from my old XP computer to my new hard drive that I then connected to
>my Sony Vaio laptop. Most files on the new hard drive are accessible on my
>Vista laptop, but a large group (100 Gig) of video editing folders and files
>are not accessible. I get these messages:
>
>"You don't currently have permission to access this folder. Click "continue"
>to gain access."
>
>Then "You have been denied permission to access this folder - To gain access
>you will need to use the security tab."
>
>I have tried to follow the instructions on the help file: "Take ownership of
>a file or folder", but although I have at least managed to get the video
>files visible, Windows Media Player cannot play them. I can't do anything
>with these files, not even delete them or copy them!!
>
>Can anyone give me some advice please, this unexpected problem is driving me
>nuts!
>
>Thanks, Jim
Back to top
Jack K
External


Since: Apr 15, 2007
Posts: 11



PostPosted: Fri Jun 01, 2007 12:09 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks very much Jimmy for this information, I will give this a method a
try, but I'm a bit nervous about doing this! Is there a method that can be
used without resorting to programming techniques? The folder and files are
still accessible from the external drive on my old XP computer, even though
I can't get access to them on my Vista laptop.

Incidentally, I tried copying one of the folders again from my XP computer
to a new folder on my external hard drive, and this time it was accessible
on my laptop Vista machine. So it seems that it's just one particular folder
that Vista has problems with, it's not a consistent problem, so this is
rather odd.

Regards, Jim


"Jimmy Brush" wrote in message

> Hello,
>
> This is a common problem with files that you created from another
> installation of Windows.
>
> This has to do with the security settings that Windows XP applied to
> these files. Since they were created from your user account in XP,
> they do not apply to your user account in Vista, and so you are denied
> access in some circumstances.
>
> To fix this, you can follow these steps:
>
> - Click Start
> - Type: cmd
> - Right-click cmd when it appears
> - Click Run As Administrator
> - Change location to the folder you need access to (e.g. cd e:\folder)
> - Type: takeown /F . /R /A /D Y > NUL
> - Type: icacls . /grant USER:(OI)(CI)(F) /L /T /Q
> (Where USER is your username - you will only have access from your
> XP and Vista machine in this case)
> (Or, replace USER with Users if you want anyone [on any computer
> your hard drive is plugged into] to have full access to these files)
>
> - JB
>
> On Thu, 31 May 2007 22:17:31 +1200, "Jack K" wrote:
>
>>I recently purchased a new external hard drive and I set about
>>transferring
>>files from my old XP computer to my new hard drive that I then connected
>>to
>>my Sony Vaio laptop. Most files on the new hard drive are accessible on my
>>Vista laptop, but a large group (100 Gig) of video editing folders and
>>files
>>are not accessible. I get these messages:
>>
>>"You don't currently have permission to access this folder. Click
>>"continue"
>>to gain access."
>>
>>Then "You have been denied permission to access this folder - To gain
>>access
>>you will need to use the security tab."
>>
>>I have tried to follow the instructions on the help file: "Take ownership
>>of
>>a file or folder", but although I have at least managed to get the video
>>files visible, Windows Media Player cannot play them. I can't do anything
>>with these files, not even delete them or copy them!!
>>
>>Can anyone give me some advice please, this unexpected problem is driving
>>me
>>nuts!
>>
>>Thanks, Jim
Back to top
Jimmy Brush
External


Since: May 11, 2007
Posts: 352



PostPosted: Fri Jun 01, 2007 12:09 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

To be honest, it is much easier to use these commands than to use the
explorer interface, as it is a bit of a pain to work with.

Basically, what this does is set the "Administrators" group as the
owner of the folder you select, as well as all the files and folders
contained within that folder. You can do this from the GUI inside of
the security tab, under advanced, and under the owner tab, and
checking the replace owner checkbox.

The second command adds a permission giving either you specifically or
all users full access to the folder and every folder and file
underneath the folder you select.

You can do this from the security tab by adding a permission from the
GUI, assigning it to either your username or the users group, and
checking the allow box under full control.

- JB

On Fri, 1 Jun 2007 08:09:57 +1200, "Jack K" wrote:

>Thanks very much Jimmy for this information, I will give this a method a
>try, but I'm a bit nervous about doing this! Is there a method that can be
>used without resorting to programming techniques? The folder and files are
>still accessible from the external drive on my old XP computer, even though
>I can't get access to them on my Vista laptop.
>
>Incidentally, I tried copying one of the folders again from my XP computer
>to a new folder on my external hard drive, and this time it was accessible
>on my laptop Vista machine. So it seems that it's just one particular folder
>that Vista has problems with, it's not a consistent problem, so this is
>rather odd.
>
>Regards, Jim
>
>
>"Jimmy Brush" wrote in message
>
>> Hello,
>>
>> This is a common problem with files that you created from another
>> installation of Windows.
>>
>> This has to do with the security settings that Windows XP applied to
>> these files. Since they were created from your user account in XP,
>> they do not apply to your user account in Vista, and so you are denied
>> access in some circumstances.
>>
>> To fix this, you can follow these steps:
>>
>> - Click Start
>> - Type: cmd
>> - Right-click cmd when it appears
>> - Click Run As Administrator
>> - Change location to the folder you need access to (e.g. cd e:\folder)
>> - Type: takeown /F . /R /A /D Y > NUL
>> - Type: icacls . /grant USER:(OI)(CI)(F) /L /T /Q
>> (Where USER is your username - you will only have access from your
>> XP and Vista machine in this case)
>> (Or, replace USER with Users if you want anyone [on any computer
>> your hard drive is plugged into] to have full access to these files)
>>
>> - JB
>>
>> On Thu, 31 May 2007 22:17:31 +1200, "Jack K" wrote:
>>
>>>I recently purchased a new external hard drive and I set about
>>>transferring
>>>files from my old XP computer to my new hard drive that I then connected
>>>to
>>>my Sony Vaio laptop. Most files on the new hard drive are accessible on my
>>>Vista laptop, but a large group (100 Gig) of video editing folders and
>>>files
>>>are not accessible. I get these messages:
>>>
>>>"You don't currently have permission to access this folder. Click
>>>"continue"
>>>to gain access."
>>>
>>>Then "You have been denied permission to access this folder - To gain
>>>access
>>>you will need to use the security tab."
>>>
>>>I have tried to follow the instructions on the help file: "Take ownership
>>>of
>>>a file or folder", but although I have at least managed to get the video
>>>files visible, Windows Media Player cannot play them. I can't do anything
>>>with these files, not even delete them or copy them!!
>>>
>>>Can anyone give me some advice please, this unexpected problem is driving
>>>me
>>>nuts!
>>>
>>>Thanks, Jim
Back to top
Jack K
External


Since: Apr 15, 2007
Posts: 11



PostPosted: Fri Jun 01, 2007 8:54 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jimmy Brush" wrote in message

> To be honest, it is much easier to use these commands than to use the
> explorer interface, as it is a bit of a pain to work with.
>
> Basically, what this does is set the "Administrators" group as the
> owner of the folder you select, as well as all the files and folders
> contained within that folder. You can do this from the GUI inside of
> the security tab, under advanced, and under the owner tab, and
> checking the replace owner checkbox.
>
> The second command adds a permission giving either you specifically or
> all users full access to the folder and every folder and file
> underneath the folder you select.
>
> You can do this from the security tab by adding a permission from the
> GUI, assigning it to either your username or the users group, and
> checking the allow box under full control.
>
> - JB

Thanks Jimmy for your help with this frustrating problem. On this occasion,
I have taken the "easy" way out, which was to open a new folder on my
portable hard drive and redo the whole copying job from my XP computer into
this folder. Fortunately, my Vista laptop has recognised all the files in
this new folder on the portable hard drive without any problems so far. But
I can see that, if you understand, and are confident using your direct
programming method, you would get the permission altered faster than using
the explorer interface, which I found most difficult to work with. However,
if you use this programming method, will you have a problem when you connect
your portable hard drive to an XP computer?

I am now wondering whether my Vista computer somehow corrupted just one
folder on my portable hard drive, even though my XP computer could still
access the portable hard drive without difficulty. It was time consuming to
recopy all the 100 gig of files into a new folder, but at least it has
worked.
Back to top
Jesper
External


Since: Dec 26, 2006
Posts: 501



PostPosted: Fri Jun 01, 2007 8:54 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> I am now wondering whether my Vista computer somehow corrupted just one
> folder on my portable hard drive, even though my XP computer could still
> access the portable hard drive without difficulty. It was time consuming to
> recopy all the 100 gig of files into a new folder, but at least it has
> worked.

The Vista computer did not corrupt the folder. The problem is that XP set
the permissions on the folder to only Administrators. That works well on XP
because virtually every user is member of Administrators and so can access
it. On Vista, even if you are a member of Administrators you cannot actually
access resources as them without jumping through certain hoops. Jimmy's
work-around basically just jumps through the hoops for you. This is how Vista
is designed. if you are interested in why, Mark Russinovich's UAC article is
a good, although very technical, read:
http://www.microsoft.com/technet/technetmag/issues/2007/06/UAC/default.aspx.
You may find the book below useful too.
---
Your question may already be answered in Windows Vista Security:
http://www.amazon.com/gp/product/0470101555?ie=UTF8&tag=protectyourwi-20
Back to top
Jack K
External


Since: Apr 15, 2007
Posts: 11



PostPosted: Fri Jun 01, 2007 11:41 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jesper" wrote in message

>
>> I am now wondering whether my Vista computer somehow corrupted just one
>> folder on my portable hard drive, even though my XP computer could still
>> access the portable hard drive without difficulty. It was time consuming
>> to
>> recopy all the 100 gig of files into a new folder, but at least it has
>> worked.
>
> The Vista computer did not corrupt the folder. The problem is that XP set
> the permissions on the folder to only Administrators. That works well on
> XP
> because virtually every user is member of Administrators and so can access
> it. On Vista, even if you are a member of Administrators you cannot
> actually
> access resources as them without jumping through certain hoops. Jimmy's
> work-around basically just jumps through the hoops for you. This is how
> Vista
> is designed. if you are interested in why, Mark Russinovich's UAC article
> is
> a good, although very technical, read:
> http://www.microsoft.com/technet/technetmag/issues/2007/06/UAC/default.aspx.
> You may find the book below useful too.
> ---
> Your question may already be answered in Windows Vista Security:
> http://www.amazon.com/gp/product/0470101555?ie=UTF8&tag=protectyourwi-20

Thanks Jesper for these interesting references. What puzzles me is how this
denial of permission has happened only once on one particular folder that I
created on an external hard drive on a Windows XP computer. I have a brand
new Seagate Freeagent 500 Gig external hard drive, but I think the drive is
working well and was not part of the problem? The fact that I was able to
reperform on my XP computer the job of creating a 100 GIG folder on an
external drive and this second attempt created no problems on my Vista
computer, was a surprise to me because it shows perhaps, that the security
system is not being applied consistently by Vista. Or perhaps I unwittingly
did something different when I recreated the file.

Incidentally, any file that is added to the offending folder, immediately
becomes locked and unable to be read, copied or deleted on my Vista
computer.

Regards, Jim
>
Back to top
Steve C-R
External


Since: Jun 01, 2007
Posts: 1



PostPosted: Fri Jun 01, 2007 11:41 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, I had the exact same problem after importing my files and settings from
an old XP install, now, I find after resetting permissions, I can no longer
download emails, I am assuming this is an off-shoot of this, as it happened
right at the same time as sorting permissions.

Thanks.

0x80070005 report from windows mail
Back to top
Jesper
External


Since: Dec 26, 2006
Posts: 501



PostPosted: Fri Jun 01, 2007 11:41 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> Thanks Jesper for these interesting references. What puzzles me is how this
> denial of permission has happened only once on one particular folder that I
> created on an external hard drive on a Windows XP computer.

It has to do with the permissions on that folder. XP set them to allow only
Administrators full access. That works on XP, but not on Vista.

> Incidentally, any file that is added to the offending folder, immediately
> becomes locked and unable to be read, copied or deleted on my Vista
> computer.

Without going into a very long explanation, this has to do with how
permission inheritance works. Any new file you add to the folder gets the
permissions the folder specifies to put on it, which is usually, but not
always, the same as the permissions on the folder. The longer description is
in the book.

---
Your question may already be answered in Windows Vista Security:
http://www.amazon.com/gp/product/0470101555?ie=UTF8&tag=protectyourwi-20
Back to top
Jesper
External


Since: Dec 26, 2006
Posts: 501



PostPosted: Fri Jun 01, 2007 11:41 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It may not. Can you give us more detail on the problem? What error messages
do you see? What did you do to the folders to fix the problem? Which e-mail
program are you using?
---
Your question may already be answered in Windows Vista Security:
http://www.amazon.com/gp/product/0470101555?ie=UTF8&tag=protectyourwi-20


"Steve C-R" wrote:

> Hi, I had the exact same problem after importing my files and settings from
> an old XP install, now, I find after resetting permissions, I can no longer
> download emails, I am assuming this is an off-shoot of this, as it happened
> right at the same time as sorting permissions.
>
> Thanks.
>
> 0x80070005 report from windows mail
Back to top
Steve C-R
External


Since: Jun 02, 2007
Posts: 8



PostPosted: Fri Jun 01, 2007 11:41 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Doing what was recommended by Jimmy Brush, was long winded and would of been
easier going into the permissions section for the folder, as it happens,
after doing what was recomended, Windows Mail no longer had permission to
write to the Windows Mail folder in my users account, so all had to be reset.

"Jesper" wrote:

> It may not. Can you give us more detail on the problem? What error messages
> do you see? What did you do to the folders to fix the problem? Which e-mail
> program are you using?
> ---
> Your question may already be answered in Windows Vista Security:
> http://www.amazon.com/gp/product/0470101555?ie=UTF8&tag=protectyourwi-20
>
>
> "Steve C-R" wrote:
>
> > Hi, I had the exact same problem after importing my files and settings from
> > an old XP install, now, I find after resetting permissions, I can no longer
> > download emails, I am assuming this is an off-shoot of this, as it happened
> > right at the same time as sorting permissions.
> >
> > Thanks.
> >
> > 0x80070005 report from windows mail
Back to top
Jimmy Brush
External


Since: May 11, 2007
Posts: 352



PostPosted: Fri Jun 01, 2007 11:41 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What folder did you apply the permission changes to?

- JB

On Fri, 1 Jun 2007 09:52:00 -0700, Steve C-R
wrote:

>Doing what was recommended by Jimmy Brush, was long winded and would of been
>easier going into the permissions section for the folder, as it happens,
>after doing what was recomended, Windows Mail no longer had permission to
>write to the Windows Mail folder in my users account, so all had to be reset.
>
>"Jesper" wrote:
>
>> It may not. Can you give us more detail on the problem? What error messages
>> do you see? What did you do to the folders to fix the problem? Which e-mail
>> program are you using?
>> ---
>> Your question may already be answered in Windows Vista Security:
>> http://www.amazon.com/gp/product/0470101555?ie=UTF8&tag=protectyourwi-20
>>
>>
>> "Steve C-R" wrote:
>>
>> > Hi, I had the exact same problem after importing my files and settings from
>> > an old XP install, now, I find after resetting permissions, I can no longer
>> > download emails, I am assuming this is an off-shoot of this, as it happened
>> > right at the same time as sorting permissions.
>> >
>> > Thanks.
>> >
>> > 0x80070005 report from windows mail
Back to top
fogjuice
External


Since: May 26, 2009
Posts: 1



PostPosted: Tue May 26, 2009 10:47 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

remon;640598 Wrote:
> Just wanted to drop by to say that the instructions and commands worked
> beautifully.
>
> I restored the primary [C:] hard drive from an old computer running
> Windows XP to a new one as a secondary/additional hard drive on Windows
> Vista, and got a "You have been denied permission to access this folder"
> message.
>
> Found this page via Google. Thank you, *Jimmy Brush*.
>
> >
Code:
--------------------
> >
> > >
- Click *Start*
- Type: cmd
- Right-click cmd when it appears and select *Run As
> Administrator*.
- Change location to the folder you need access to (e.g. cd
> e:\folder).
- Type: takeown /F . /R /A /D Y > NUL
- Press the Enter key and wait for the command to complete.
- Type: icacls . /grant Users:(OI)(CI)(F) /L /T /Q
- Press the Enter key.
> > >
>
--------------------
> > Should come in handy for future visitors. Smile


Just wanted to say this worked perfectly for me. I had a bunch of old
folders on an old hard drive that I needed to regain permissions to. I
plugged it into my Windows 7 x64 machine, ran this command, and it
worked! Smile

Now the scary part is, if this can regain permissions to folders that
users aren't supposed to have perms on, how can one truly prevent users
from gaining access to a windows folder?


--
fogjuice
Back to top
acesilver
External


Since: Feb 25, 2010
Posts: 1



PostPosted: Thu Feb 25, 2010 7:49 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

easy fix for when I needed to delete a folder that I could not because
of permission problems.

This is for people who still need help with this, I'm kinda late on
helping the original person but here it is....

Run cmd prompt as administrator, then type in....
net user administrator /active:yes

that opens up a new admin account and gives you access to everything. I
was able to delete the folder then =) i hope this helps!:D


--
acesilver
Back to top
MowGreen
External


Since: Apr 20, 2009
Posts: 8



PostPosted: Thu Feb 25, 2010 7:49 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

acesilver wrote:
> easy fix for when I needed to delete a folder that I could not because
> of permission problems.
>
> This is for people who still need help with this, I'm kinda late on
> helping the original person but here it is....
>
> Run cmd prompt as administrator, then type in....
> net user administrator /active:yes
>
> that opens up a new admin account and gives you access to everything. I
> was able to delete the folder then =) i hope this helps!Very Happy
>
>

You forgot a *really important* step:

net user administrator /active:no

Leaving the Admin account active is an unnecessary security risk after
the folders have been deleted. It's quicker than changing Perms or
taking Ownership of the folders but leaving the Admin account active is
not wise as *anything* that installs when it's active will have the same
rights as the Admin on the system.


MowGreen
================
*-343-* FDNY
Never Forgotten
================

banthecheck.com
"Security updates should *never* have *non-security content* prechecked
Back to top
Bjorn Jensen
External


Since: Feb 27, 2010
Posts: 1



PostPosted: Sat Feb 27, 2010 2:10 pm    Post subject: Re: Denied permission to access folders [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi

"acesilver" skrev i meddelelsen

>
> easy fix for when I needed to delete a folder that I could not because
> of permission problems.
>
> This is for people who still need help with this, I'm kinda late on
> helping the original person but here it is....
>
> Run cmd prompt as administrator, then type in....
> net user administrator /active:yes
>
> that opens up a new admin account and gives you access to everything. I
> was able to delete the folder then =) i hope this helps!Very Happy
>
>
> --
> acesilver

Do your little guide also work 100% in Windows 7 ?

--
Bjorn
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum