delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/08/00:25:09

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Gmane User <fma AT doe DOT carleton DOT ca>
Subject: Re: A FAQ regarding defrag and permissions of nonadmin files?
Date: Tue, 08 Apr 2008 00:18:54 -0400
Lines: 63
Message-ID: <ftes1l$p5m$1@ger.gmane.org>
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>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
In-Reply-To: <47FAEF8D.24725E79@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Brian Dessent wrote:
> Gmane User wrote:
>
>> I'm defragging the whole disk, so I need the defragger to be able
>> to access all files from whatever account it runs under.
>
> I've never had any problem doing that without having to specifically
> loosen any ACLs.

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
on a nonadmin account.  This is what chokes the defragger.  Do you
have the same circumstance?

>> About defragging as a service,
>> http://support.microsoft.com/kb/120929 says that the System account
>> has no more permissions than an admin account.
>
> I use O&O Defrag, it runs as a service as NT AUTHORITY\SYSTEM, and
> it defrags all my Cygwin files just fine without needing to set any
> special permissions.  It has been the same way with every other
> defrag program I've used too.
>
>> About defragging on boot-up, JkDefrag does this too, but still
>> needs an account to run under.  Is it possible for a defrag (or a
>> process) to run not under any account?  That is, does Ultra
>> Defragmenter actually do this?  Ultra Defragmenter would have been
>> my first choice, except that I ran into this caveat:
>
> At the point where UltraDefrag runs only the kernel and drivers have
> loaded, the Win32 subsystem and the SAM do not even exist yet --
> this is the whole point of doing it that early in the process, so
> that things like the registry hives are not yet open and locked.  So
> I think this runs in the absence of any user context.  And even when
> doing a normal defrag, UltraDefrag does the actual processing in
> kernel mode as a driver and at that level there are no access
> restrictions whatsoever.

Hmm.  That raises questions in my feeble mind.  I wonder why JkDefrag
requires the specification of a user account for the boot-up defrag.

Anyway, I will try Ultra Defragementer.  Thank you for the reassurance
and explanation below.  I have my fingers crossed.  Actually, I'll try
a boot-time defrag with JkDefrag first.  But Ultra is next, if the same
problems arise.

>>
http://groups.google.ca/group/alt.comp.freeware/browse_frm/thread/377f0ea5602cc584/855cc4e01f835029.
>> I described in my original post the barriers to ghosting in my
>> obsolete system, so I'm reticent to experiment with developmental
>> defraggers until they built up a bit of a track record.  This
>> decision has more to do with safety than how well the algorithm may
>> be coded up.
>
> Keep in mind that all of these things are using the same code for
> the heavy lifting of actual defragmentation.  That is implemented in
> the NTFS.SYS filesystem kernel driver; none of the tools actually
> touch the raw disk, they just send an IOCTL to the filesystem
> telling it to move a file extent from A to B.  The only thing that
> differs is the high level algorithm that decides what goes where,
> but none of them do the actual moving.  The risk of data loss
> therefore is more or less constant and does not depend on which tool
> is being used, as I see it.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019