AW: Files not accessible after reinstalling OS and cygwin

marco.lechner marco.lechner@geographie.uni-freiburg.de
Sun Oct 30 10:12:00 GMT 2005


If you have Administrator-Rights on a Windows-Machine with cygwin and you
want to get access on a file as described in your problem you've got to
different possibilities:

Use the Explorer-Dialog and:
1. change the owner to Administrator
2. give the Administrator Full-Access-Rights

If you are using Cygwin, you have to make it the other way round:
1. chmod 777 filename
2. chown Administrator filename

I don't know why, but it's not possible to "chown Administrator filename" if
the file is "rwxrwx--- unknown unknown ......". But it is possible to chmod
777 and "chown Administrator filename" afterwards. Just the other way round
then Windows does it.


Marco Lechner

--------------------------------------------------------
Marco Lechner
Email marco.lechner@geographie.uni-freiburg.de

-----Ursprüngliche Nachricht-----
Von: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] Im Auftrag von
Deb* Mohanty
Gesendet: Sonntag, 30. Oktober 2005 10:26
An: cygwin@cygwin.com
Betreff: Re: Files not accessible after reinstalling OS and cygwin

Dear Igor,

Thanks first of all.
I forgot to mention that I tried to use 'chown' unsuccessfully earlier.
But I tried explorer Advanced Security Properties now and it worked.

Thanks again,
Deb


On 10/29/05, Igor Pechtchanski <pechtcha@cs.nyu.edu> wrote:
> On Sat, 29 Oct 2005, Deb* Mohanty wrote:
>
> > Dear Experts,
> >
> > I had windows2k and cygwin installed on my machine, and I had marked
> > some files as read-only (using cygwin chmod). For some reasons, I had
> > to reinstall windows2k. I also reinstalled cygwin in the same location
> > as it was installed earlier.
> >
> > However the files which were marked read-only earlier are not
> > accessible now. They can't be deleted either. Those are huge files and
> > taking up the space.
> >
> > Any solutions?
>
> An administrative account should be able to take ownership, either using
> Cygwin's chown, or via the Advanced Security Properties dialog in
> Explorer.  Then you can do whatever you wish with the files.
> HTH,
>        Igor
> --
>                                http://cs.nyu.edu/~pechtcha/
>      |\      _,,,---,,_                pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`'    -.  ;-;;,_            igor@watson.ibm.com
>     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski, Ph.D.
>    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!
>
> If there's any real truth it's that the entire multidimensional infinity
> of the Universe is almost certainly being run by a bunch of maniacs. /DA
>

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


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



More information about the Cygwin mailing list