RE: xterm fails to start with setuid failed: Permission denied

2002-06-26 Thread Franz Wolfhagen


Let me guess - you have logged in as a domain user, but your home directory
is /home/Administrator (or whatever the local administrator is named in
dutch...)

It seems that cygwin is capable of seeing all domain users and when running
'whoami' returns 'Administrator' instead of the domain user.

I would guess that you will have to create an account in /etc/passwd
manually - the question is just how... - but I will guess that you will
have to find the SID of you domain user and add it to /etc/passwd.

Med venlig hilsen / Regards
Franz Wolfhagen


Florimon van Putte [EMAIL PROTECTED]@cygwin.com on 26-06-2002
10:50:35

Please respond to Florimon van Putte [EMAIL PROTECTED]

Sent by:[EMAIL PROTECTED]


To:Cygwin-Xfree [EMAIL PROTECTED]
cc:
Subject:RE: xterm fails to start with setuid failed: Permission
   denied




Ok, I've done

mkpasswd -l  /etc/passwd
mkpasswd -d  /etc/passwd
mkgroup -l -u  /etc/group
mkgroup -d -u  /etc/group

but I keep having xterm die on me with setuid failed: Permission denied
??

rgds,
Florimon van Putte







RE: xterm fails to start with setuid failed: Permission denied

2002-06-26 Thread Florimon van Putte



 Let me guess - you have logged in as a domain user, but your 
 home directory
 is /home/Administrator (or whatever the local administrator 
 is named in
 dutch...)

Thank god I'm using an English NT installation :))
Anyway - argh ! It works after all - after running the mkpasswd and mkgroup,
I hadn't exited my login shell. When I did and restarted it, I landed into
/home/fputte instead of /home/Administrator and now it works. Thanks for the
help !

rgds,
Florimon


 
 It seems that cygwin is capable of seeing all domain users 
 and when running
 'whoami' returns 'Administrator' instead of the domain user.
 
 I would guess that you will have to create an account in /etc/passwd
 manually - the question is just how... - but I will guess 
 that you will
 have to find the SID of you domain user and add it to /etc/passwd.
 
 Med venlig hilsen / Regards
 Franz Wolfhagen
 
 
 Florimon van Putte [EMAIL PROTECTED]@cygwin.com on 
 26-06-2002
 10:50:35
 
 Please respond to Florimon van Putte [EMAIL PROTECTED]
 
 Sent by:[EMAIL PROTECTED]
 
 
 To:Cygwin-Xfree [EMAIL PROTECTED]
 cc:
 Subject:RE: xterm fails to start with setuid failed: Permission
denied
 
 
 
 
 Ok, I've done
 
 mkpasswd -l  /etc/passwd
 mkpasswd -d  /etc/passwd
 mkgroup -l -u  /etc/group
 mkgroup -d -u  /etc/group
 
 but I keep having xterm die on me with setuid failed: 
 Permission denied
 ??
 
 rgds,
 Florimon van Putte
 
 
 
 



RE: xterm fails to start with setuid failed: Permission denied

2002-06-25 Thread Ralf Habacker

  Hi,

 I'm getting the same for xterm. My Cygwin / XFree86 installation from about
 three
 months ago was running fine, but when I upgraded it yesterday I get the same
 problem,
 at least when running as a domain user. Xterm works when I run it as the local
 administrator though.

 I also have problems with xcalc (window is filled with the 0 button), and
 xedit
 (displays the message Error: Shell widget fileMenu has zero width and/or
 height
 and doesn't start). This is both as domain user and local administrator

 This happens with both XFree86 and StaNet X-Win32 as X servers. Is there a
 problem
 with the client utilities build?

This is caused by a stricter uid/gid handling in cygwin 1.3.11. I've stumbled
about it and Corinna Vinschen told me to make sure, that for all user, who could
own files, which you like to access has to be a corresponding entry in
/etc/passwd.

See http://www.cygwin.com/ml/cygwin/2002-06/msg01198.html for more informations.




Re: xterm fails to start with setuid failed: Permission denied

2002-06-25 Thread Peter Keller



Ralf Habacker wrote:


 This is caused by a stricter uid/gid handling in cygwin 1.3.11. I've stumbled
 about it and Corinna Vinschen told me to make sure, that for all user, who could
 own files, which you like to access has to be a corresponding entry in
 /etc/passwd.

 See http://www.cygwin.com/ml/cygwin/2002-06/msg01198.html for more informations.

Thanks: after fixing my /etc/passwd, it works for me. BUT, I don't use ntsec, which
is
why I had never read the docs about it too closely.

This stricter uid/gid stuff affects non-ntsec use as well: perhaps the user manual
could
be updated to reflect this?

Regards,
Peter.

P.S. xcalc and xedit are still broken. Maybe a Motif/Lesstif problem? Anyway, these
are
not the most important of utilities.