???????? owner and group

Warren Young warren@etr-usa.com
Thu Jan 22 18:36:00 GMT 2009


Corinna Vinschen wrote:
> 
> Have a look into the ACL by using Windows Explorer properties/security
> dialog.  What you see is thatthe user and group for a file on the share
> is "Unix User\yourunixuser" and "Unix Group\yourunixgroup".  These
> accounts are missing in your /etc/passwd and /etc/group files.

Okay, that clears up the Samba side, but what about the local system files?

$ getfacl /c/Windows/regedit.exe
# file: /c/Windows/regedit.exe
# owner: ????????
# group: ????????
user::rwx
group::rwx
group:root:r-x
group:SYSTEM:r-x
group:Users:r-x
mask:rwx
other:---

I re-ran mkpasswd with no flags, and got the same thing I have in 
/etc/passwd already.

> What you can do:
> 
> - Add the Unix accounts to /etc/passwd and /etc/group, for instance:
> 
>   $ mkpasswd -L sambaserver,20000 -U yourunixuser
>   Unix User\yourunixuser:unused:21000:99999:,S-1-22-1-1000::
>   $ mkgroup -L sambaserver -U yourunixgroup
>   Unix Group\yourunixgroup:S-1-22-2-101:20101:
> 
> - Change the cygdrive flags in /etc/fstab to noacl, which is equivalent
>   to the old CYGWIN=nosmbntsec.

These are alternatives, right, not two steps that both have to be done?

I tried the second part first, figuring that I didn't mind the old 
nosmbntsec behavior -- all your files are belong to us -- but still got 
the question marks.

Then I broke down and built up /etc/passwd and /etc/group until all the 
question marks over Samba went away, then removed the noacl option, 
restarted all Cygwin stuff, and the question marks are still gone.

So, is noacl not doing what it's supposed to?

If I change the cygdrive fstab entry to:

	none / cygdrive binary,posix=0,user,noacl 0 0

and restart all of Cygwin, I see:

$ mount
C:/cygwin/bin on /usr/bin type unknown (binary)
C:/cygwin/lib on /usr/lib type unknown (binary)
C:/cygwin on / type unknown (binary)
C: on /c type ntfs (binary,posix=0,user,noumount)
D: on /d type ntfs (binary,posix=0,user,noumount)
T: on /t type smbfs (binary,posix=0,user,noumount)
U: on /u type smbfs (binary,posix=0,user,noumount)
V: on /v type smbfs (binary,posix=0,user,noumount)

noacl doesn't appear in the mount flags.  Is it incompatible with one of 
the others?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list