Andrew DeFaria wrote:
On 03/01/2010 09:57 PM, Wes Barris wrote:
I'm trying to find a solution for my files being listed with '????????'
as the owner and group:
-rw-r--r-- 1 ???????? ???????? 137894 2010-02-25 11:34 1536.gff
The following page partially addresses this:
http://www.cygwin.com/cygwin-ug-net/ntsec.html
It says that:
--------------------------
If another user (or a Windows group, treated as a user) is not present
in /etc/passwd, the uid of that user will have a special value of -1
(which would be shown by ls as 65535). The user name shown in this
case will be '????????'.
--------------------------
I would like to modify the /etc/passwd file so that it shows me
as the owner of these files instead of '????????'. That page
shows how /etc/passwd is used to create a mapping between Windows
Security SIDs and Cygwin uids.
How do I find/list the Windows SIDs of these files so that I can
create the proper mapping in /etc/passwd?
How about:
$ mkpasswd -d >> /etc/passwd
$ ls -l <file>
and see who owns it?
mkpasswd -d would return all of the domain users (we have thousands).
However, I know that these files are not owned by anyone else.
The files in question are coming from a samba share (mapped network
drive) served from a Linux system.
Isn't there a way so see the SID of a file?
--
Wes Barris
--------------------------------------------------------------------
Today's fortune: God invented automobiles so that we could pace
locomotives.
--
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