Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Delivery-date: Sun, 30 Oct 2005 11:12:27 +0100 From: "marco.lechner" To: "'Deb* Mohanty'" , Subject: AW: Files not accessible after reinstalling OS and cygwin Date: Sun, 30 Oct 2005 11:13:07 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" In-Reply-To: Message-ID: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j9UACY02005226 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 DOT lechner AT geographie DOT uni-freiburg DOT de -----Ursprüngliche Nachricht----- Von: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] Im Auftrag von Deb* Mohanty Gesendet: Sonntag, 30. Oktober 2005 10:26 An: cygwin AT cygwin DOT 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 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 AT cs DOT nyu DOT edu > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/