X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; q=dns; s=default; b=wjgwzkfLrcFtL4L5 Bt7ZDmw+RC4G9yeqzei3wVrb0WMWyPnyR665+ImjfEs+nOHqUUzwO2E6YTRS9L3i r2c9iAV5BkAd3yboVWF+zsabhEE2oBCO8mdwclbi1b34Jvo7j7fDLqSBogPSgn7L JKvlgUUf4lQl2+izw5cFqTK7PaQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; s=default; bh=4Abr5YGyZVJeAbxELRjAWg vuR2s=; b=iiuMIYVCyGgh23C5Io9Hakgd17COCMlwuOl4Ou+IezJlxKiZ2SO++u 8XBfQJGMPUiYiTyRCZUmjhCJt+zZycfP2ItpUIVWqXTnLeORrmBtV4Z2sqB21eYF erJT91nKA/xiICjQ7+l0YiFekTKeAHCZXp6CJTdFQgDyKVeT/YT7w= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-HELO: mail-wi0-f177.google.com MIME-Version: 1.0 X-Received: by 10.180.78.234 with SMTP id e10mr53974773wix.32.1415829202672; Wed, 12 Nov 2014 13:53:22 -0800 (PST) In-Reply-To: <81578012-FD3F-4463-BC56-ADB092317DD4@etr-usa.com> References: <81578012-FD3F-4463-BC56-ADB092317DD4 AT etr-usa DOT com> Date: Wed, 12 Nov 2014 16:53:22 -0500 Message-ID: Subject: Re: /usr/local, /var and */tmp in c:\Users\Public From: cyg Simple To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sACLrcnO013425 On Wed, Nov 12, 2014 at 1:00 PM, Warren Young wrote: > I didn’t want to derail the discussion about the future of /home with this, so I’m starting a new thread. > > I think it would be an improvement to Cygwin if c:\cygwin contained only things that can be reinstalled from your local setup.exe download cache, in the same way that you can nuke "c:\Program Files\Microsoft Office $version” and reinstall without losing anything you created locally. > What local changes/installations get lost? > Further design principles follow from this: > > - User data should live in directories that those users are normally allowed to write to. > > - Per-machine software and per-machine configuration should be in directories that local Administrators can normally write to. > > - Software built from source (/usr/local) should not be in c:\cygwin; it is per-machine configuration, and so should be elsewhere. > > - If you tighten down what remains so that normal users only get read permission, it should continue to function, in the same way that normal users on a Linux box don’t need write access to, say, /usr/include. > > > This /etc/fstab addition mostly accomplishes that: > > > c:/Users/Public/Cygwin/var /var ntfs auto 0 0 > c:/Users/Public/Cygwin/usr/local /usr/local ntfs auto 0 0 > > c:/Users/Public/Cygwin/tmp /tmp ntfs notexec 0 0 > c:/Users/Public/Cygwin/tmp /usr/tmp ntfs notexec 0 0 > c:/Users/Public/Cygwin/tmp /var/tmp ntfs notexec 0 0 > > > I propose that this or something like it be added to the default fstab. > Please NO not by default or offering an option. A back end tool maybe in cygutils that can be run manually. -- cyg Simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple