delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <47FAFB2C.F289B878@dessent.net> |
Date: | Mon, 07 Apr 2008 21:57:16 -0700 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: A FAQ regarding defrag and permissions of nonadmin files? |
References: | <ftel7t$b1s$1 AT ger DOT gmane DOT org> <47FADE53 DOT 1DFBEE53 AT dessent DOT net> <ftepv1$kve$1 AT ger DOT gmane DOT org> <47FAEF8D DOT 24725E79 AT dessent DOT net> <ftes1l$p5m$1 AT ger DOT gmane DOT org> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Gmane User wrote: > Let's make sure we're comparing the same situation. I've used bash to > explicitly change permissions to go-rwx for most of my files. This is To be pedantic, you used chmod (or some other utility); bash is just a shell, it does not set permissions. > on a nonadmin account. This is what chokes the defragger. Do you > have the same circumstance? Yes, I just ran the series of commands in the previous mail as a non-administrator user, creating a file in 2 fragments. I then switched to a user in the administrators group and ran O&O defrag (though the user that launches the job shouldn't matter as O&O runs decoupled as a service anyway) and the file was defragmented. Note that Win32 has a backup API which allows any user with the 'backup' privilege in their token to open any file, regardless of its ACL. Cygwin uses this to simulate the unix semantics of "root" (i.e. total access to anything regardless of permissions) and so for example the file I created with mode 600 as a regular user was completely readable from Cygwin when logged in as a user in the administrators group, even though the permissions/ACL deny it. I suspect that O&O and most other defrag programs use this same technique. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |