This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Strange permissions set when I create files in my home directory on windows 10


I mean '/home/jhu' as the user's home.

Sorry for the confusion.

On Sat, Jul 30, 2016 at 2:38 PM, Reckoner <reckoner@gmail.com> wrote:
> Thanks for your reply. By "home" directory, I mean "/home/". This is
> c:\cygwin\home on Windows but /home/ on cygwin.
>
> % icacls foo
> foo NULL SID:(DENY)(Rc,S,WEA,X,DC)
>     S4\jhu:(DENY)(S,RD,WD,AD,REA,WEA,DC)
>     S4\jhu:(D,Rc,WDAC,WO,RA,WA)
>     NT AUTHORITY\Authenticated Users:(DENY)(S,X)
>     NT AUTHORITY\SYSTEM:(DENY)(S,X)
>     BUILTIN\Administrators:(DENY)(S,X)
>     BUILTIN\Users:(DENY)(S,X)
>     S4\None:(Rc,S,RA)
>     NT AUTHORITY\Authenticated Users:(RX,W)
>     NT AUTHORITY\SYSTEM:(RX,W)
>     BUILTIN\Administrators:(RX,W)
>     BUILTIN\Users:(RX)
>     Everyone:(Rc,S,RA)
>
> Successfully processed 1 files; Failed processing 0 files
> % getfacl foo
> # file: foo
> # owner: jhu
> # group: None
> user::---
> group::---
> group:Authenticated Users:rwx           #effective:rw-
> group:SYSTEM:rwx                        #effective:rw-
> group:Administrators:rwx                #effective:rw-
> group:Users:r-x                         #effective:r--
> mask:rw-
> other:---
>
> Thanks!
>
>
>
> On Sat, Jul 30, 2016 at 1:14 PM, Andrey Repin <anrdaemon@yandex.ru> wrote:
>> Greetings, Reckoner!
>>
>>> When I do
>>
>>> % touch foo
>>
>>> in my home directory, `ls -l` gives,
>>
>>> ----rw----+ 1 jhu     0 Jul 30 09:16 foo
>>
>> Define "home directory"? Is this cygwin private home? Your user's home set as
>> Cygwin home through nsswitch ?
>> What is the output on said entry from getfacl? icacls?
>>
>>> Note the permissions. Here's my /etc/fstab
>>
>>
>>> none /mnt cygdrive binary,noacl,posix=0,user 0 0
>>> c: /c ntfs noacl,binary,auto 0 0
>>> d: /d ntfs noacl,binary,auto 0 0
>>
>> You could save yourself last two lines by just mounting cygdrive as /
>>
>>> c:/Temp /tmp ntfs noacl,binary,auto 0 0
>>
>> And you can use private user's temp via
>>
>> none /tmp usertemp binary,user,notexec,posix=0 0 0
>>
>>> This just started happening after I upgraded my cygwin install.
>>
>>> % uname -r
>>> 2.5.2(0.297/5/3)
>>
>>
>> --
>> With best regards,
>> Andrey Repin
>> Saturday, July 30, 2016 23:10:40
>>
>> Sorry for my terrible english...
>>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]