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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=IOnCFa76gabTJpCn P95oOLF6DsL44pP+mxiQsdN4ofzDnd1JbXilqHpBTqJC/N/VPBXWQX3nUeTPSbz1 nOWK4915M6AYpdXR16WNpJ9+2yaydcVx8c3ZZFh8IW9kIUZwnr4Ndue/38tLLULn k+Np+/dopUf7bZPGd1Nf+H0Q4MQ= 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:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=0JMr8Gk2xqJxFJmZLGyKsD GIas4=; b=d9wjd4oMRHzvEI591tgIktcinNPZYAuaqNV9mUU4tgF8MjY1R3g+tw qS861EumERzmQyFVDoax7HWNDMnjcWd92hZUqG1MfA1HcjCmKdCw1KABy1fnWyPR eAObtRdICtLShYinIuzVSJAKPqlS8wQFu27LI7K+p3sBYFniw6w70= 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=-2.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,SPF_SOFTFAIL,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Date: Thu, 13 Nov 2014 01:21:19 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1822826856.20141113012119@yandex.ru> To: cyg Simple , cygwin AT cygwin DOT com Subject: Re: /usr/local, /var and */tmp in c:\Users\Public In-Reply-To: References: <81578012-FD3F-4463-BC56-ADB092317DD4 AT etr-usa DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id sACMZPXM017419 Greetings, cyg Simple! >> 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? What get lost, if you nuke Cygwin folder in default installation? Everything. Every single piece you could think about. >> 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. Give one good reason, other than impulsive screaming? -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 13.11.2014, <01:19> Sorry for my terrible english...