public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Cedric Blancher <cedric.blancher@gmail.com>
To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Subject: Cygwin 3.5 bug? /usr/bin/ls.exe -l and Windows dir /q disagree about file owner names
Date: Tue, 3 Oct 2023 13:45:34 +0200	[thread overview]
Message-ID: <CALXu0UcweLGr7EVScXuj3wp+BbMykodV5ioTCayD17+HwaWgvA@mail.gmail.com> (raw)

Good afternoon!

Likely question for Lady Corinna:
Can anyone please explain why Windows dir command and Cygwin ls -l
list different owners for a file?

The directory has two files, one owned by root (without mapping to
Windows, so getting a NULL SID) and one owned by me (user
cedrictest17)

Is this a Cygwin bug?

--cut--here--cut--here--cut--here--
$ uname -a
CYGWIN_NT-10.0-19045 winzott1984 3.5.0-0.423.g7ced682549ae.x86_64
2023-09-07 17:19 UTC x86_64 Cygwin
$ cmd /C 'dir /q'
03.10.2023  13:38    <DIR>          WINZOTT1984\cedrictest17.
03.10.2023  13:35    <DIR>          WINZOTT1984\cedrictest17..
03.10.2023  13:38                 0 WINZOTT1984\cedrictest17owned_by_cedric
03.10.2023  05:57                 0 \NULL SID              owned_by_root
               2 Datei(en),          8.192 Bytes
               2 Verzeichnis(se), 52.775.219.200 Bytes frei

$ ls -l
total 0
-rw-r--r-- 1 Unix_User+0 Unix_Group+0 0 Oct  3 13:38 owned_by_cedric
-rw-r--r-- 1 Unix_User+0 Unix_Group+0 0 Oct  3 05:57 owned_by_root
--cut--here--cut--here--cut--here--

Ced
-- 
Cedric Blancher <cedric.blancher@gmail.com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

                 reply	other threads:[~2023-10-03 11:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALXu0UcweLGr7EVScXuj3wp+BbMykodV5ioTCayD17+HwaWgvA@mail.gmail.com \
    --to=cedric.blancher@gmail.com \
    --cc=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).