Re: need to fix permissions

2020-07-16 Thread Bill Stewart
On Wed, Jul 15, 2020 at 7:46 PM  wrote:

> Thank you very much !
>
> I didn't see anybody mention that attrib step, in all the _many_ docs
that i read.

You're welcome. This is probably because file attributes are not actually
security attributes.

(As an aside: Please remove the responder's email address when replying, as
I have done above, to prevent potential spammer harvesting.)

Bill
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: need to fix permissions

2020-07-15 Thread briand
On Wed, 15 Jul 2020 07:49:30 -0600
Bill Stewart  wrote:

> On Tue, Jul 14, 2020 at 6:34 PM  wrote:
> 
> the cygwin home folder is giving me a LOT of trouble with access denied.
> >
> > i've tried takeown and icacls to fix permissions, and strangely it worked
> > for _Some_ files, but i still have files which i need to back up which are
> > causing "access denied" errors.
> >
> > i'm hoping someone who understands how cygwin has set permissions can give
> > me a way to fix-up the permissions in ntfs land.
> >  
> 
> The following is what I have used successfully in the past and should reset
> everything:
> 
> 1. Open an elevated PowerShell or cmd.exe shell
> 
> 2. Take ownership to Administrators group:
> 
> takeown /F "C:\cygwin" /A /R /D Y
> 
> 3. Reset all file permissions:
> 
> icacls "C:\cygwin" /reset /T /C
> 
> 4. Reset the file attributes:
> 
> attrib -h -r -s "C:cygwin\*" /s
> 

Thank you very much !

I didn't see anybody mention that attrib step, in all the _many_ docs that i 
read.



-- 
Brian

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: need to fix permissions

2020-07-15 Thread Bill Stewart
On Tue, Jul 14, 2020 at 6:34 PM  wrote:

the cygwin home folder is giving me a LOT of trouble with access denied.
>
> i've tried takeown and icacls to fix permissions, and strangely it worked
> for _Some_ files, but i still have files which i need to back up which are
> causing "access denied" errors.
>
> i'm hoping someone who understands how cygwin has set permissions can give
> me a way to fix-up the permissions in ntfs land.
>

The following is what I have used successfully in the past and should reset
everything:

1. Open an elevated PowerShell or cmd.exe shell

2. Take ownership to Administrators group:

takeown /F "C:\cygwin" /A /R /D Y

3. Reset all file permissions:

icacls "C:\cygwin" /reset /T /C

4. Reset the file attributes:

attrib -h -r -s "C:cygwin\*" /s

Bill
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


need to fix permissions

2020-07-14 Thread briand
Hi,

Windows question, but since it has to do with the way cygwin has assigned 
permissions, i thought it would be a relevant questions.  i'm in the very 
unfortunate position of having a PC that won't boot properly.

by some miracle i've got access to the C: drive and i'm trying to back up my 
files to a flash drive.

however...

the cygwin home folder is giving me a LOT of trouble with access denied.

i've tried takeown and icacls to fix permissions, and strangely it worked for 
_Some_ files, but i still have files which i need to back up which are causing 
"access denied" errors.

i'm hoping someone who understands how cygwin has set permissions can give me a 
way to fix-up the permissions in ntfs land.

any help greatly appreciated.

thank you.

-- 
Brian

--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple