fork error in Windows 2003 running as normal user

Kris Thielemans kris.thielemans@imperial.ac.uk
Thu Mar 24 07:52:00 GMT 2005


 
Hi Igor

Thanks for your help.

> 
> What does "getfacl /bin" report?  I'd bet there isn't an 
> inheritable execute permission for everyone.  If this is the 
> case, all the DLLs will not be executable for "other", which 
> is consistent with your symptoms below.
> 

$ getfacl /bin
# file: /bin
# owner: Compaq_Owner
# group: None
user::rwx
group::r-x
group:root:rwx
group:SYSTEM:rwx
group:Users:rwx
mask:rwx
other:r-x
default:user::rwx
default:group:root:rwx
default:group:SYSTEM:rwx
default:group:Users:rwx
default:mask:rwx

Before I've posted this, I've done things like
chmod -R go+rx bin lib


> > C:\cygwin\bin\id.exe (3876): *** could not load user32, Win32 error 
> > 1114
> >
> > Win32 error 1114 is apparently
> > "A dynamic link library (DLL) initialization routine failed."
> 
> It's probably not "user32" (as bash also uses it).  Try 
> "cygintl-3.dll" or "cygiconv-2.dll".
> 

I don't think this is it:

$ getfacl cygiconv-2.dll
# file: cygiconv-2.dll
# owner: Compaq_Owner
# group: None
user::rwx
group::r-x
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:r-x
$ getfacl cygintl-3.dll
# file: cygintl-3.dll
# owner: Compaq_Owner
# group: None
user::rwx
group::r-x
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:r-x


> FYI, it's better to run "cygcheck -svr" instead of just 
> "cygcheck -s", as you seem to have done.
> 

Ok. Attached, in case it helps.
> 
> Try "chmod a+x /bin/*.dll" and see if that solves your 

I guess you mean "chmod o+x..."

> problem.  If yes, then "setfacl -m d:m:rwx,d:g:rwx,d:o:r-x 
> /bin" should help for future updates...

As I mentioned above, the chmod didn't help. Now I also tried

setfacl -m d:m:rwx,d:g::rwx,d:o:r-x /bin

And no, that doesn't work either.


Some more info on permissions, also to clear up some confusion I might have
generated in my previous email.

Seems that I was caught by the difference between POSIX and NT ACLs (nicely
described in Corinna's text on ntsec in the cygwin documentation).

The dlls in c:\windows\system32 were all readable/executable by members of
the Users group, which presumably is why all windows programs did work :-).
I checked this with getfacl, but also by rebooting XP Home in Safe mode
(where you finally have the security tab in the file properties back). So,
there really was no need for me to change those permissions I guess.
(Corinna's document doesn't really specify who is in Users. I guess this is
because in NT and e.g. XP Pro you can set this in the user administration.
However, on XP Home, you cannot. I'm only hoping that every account is in
Users).

That brought me then to /etc/passwd. Indeed, my non-admin user had a group
ID as None. I changed that to Users. I also chown his files to kris.Users. 

Still exactly the same problems though.

Kris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck-nonadmin.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050324/7ec9d016/attachment.txt>
-------------- next part --------------
--
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