This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: /usr/local, /var and */tmp in c:\Users\Public
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: cyg Simple <cygsimple at gmail dot com>, cygwin at cygwin dot com
- Date: Thu, 13 Nov 2014 01:21:19 +0300
- Subject: Re: /usr/local, /var and */tmp in c:\Users\Public
- Authentication-results: sourceware.org; auth=none
- References: <81578012-FD3F-4463-BC56-ADB092317DD4 at etr-usa dot com> <CABa6CEkRV=3FY6ZVGrdt--rH3PppwCJRD5poU0L2knv2k2ce_w at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
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@yandex.ru) 13.11.2014, <01:19>
Sorry for my terrible english...