Domain Users
Recently, we have upgraded our version of cygwin from 1.3.12-2 to 1.5.5-1. Since that, we have a problem with domain users. Cygwin is installed locally on each computer by the local administrator and it is used by domain users. If we open a bash shell, we have the following messages: bash: cannot create temp file for here document: Permission denied Your group is currently mkpasswd. This indicates that the /etc/passwd (ans possibly /etc/group) files should be rebuilt. See the man pages for mkpasswd and mkgroup then, for example, run mkpasswd -l [-d] /etc/passwd mkgroup -l [-d] /etc/group Note that the -d switch is necessary for domain users. If we add Domain Users in the /etc/group file and one domain user in the /etc/passwd, this user can then use cygwin correctly (but we still have the message concerning the temp file. Any hints?). The problem is that we have several hundren of users and some of them are added and deleted each week. Is there an other solution that adding all the users in the /etc/passwd file? Boris -- 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/
Re: Domain Users
bash: cannot create temp file for here document: Permission denied At a guess, this is because you have TEMP set to some directory that domain users cannot access. You could add a TEMP=/tmp at the top of /etc/profile, and see if it helps. Oh, and make sure /tmp on every computer is mode 01777, so that it *is* writeable by everyone. The TEMP variable is set, and is %USERPROFILE%\Local Settings\Temp. The directory exist and user have write access (but not everyone, I will do test with that). Your group is currently mkpasswd. This indicates that the /etc/passwd (ans possibly /etc/group) files should be rebuilt. See the man pages for mkpasswd and mkgroup then, for example, run mkpasswd -l [-d] /etc/passwd mkgroup -l [-d] /etc/group Note that the -d switch is necessary for domain users. The problem is that we have several hundren of users and some of them are added and deleted each week. Is there an other solution that adding all the users in the /etc/passwd file? Unfortunately, the SID of the user should be in /etc/passwd for the user to have full use of Cygwin's services, etc. One possible solution in your situation is to keep one centralized user database on a shared drive and mount it as /etc/passwd on each machine (and similarly for groups). That way, when you add and remove users, you will only have to change one file. The UIDs for the standard accounts (i.e., Administrator{,s}, SYSTEM, etc) are usually pretty standard, at least on NT-based OSs, but I'm not too sure about the SIDs, so you might have some problems there... Also, be aware that security attributes on shared drives are controlled by the smbntsec setting in the CYGWIN environment variable, rather than ntsec. Thanks for the answer. I will check what I can do. Two more questions: 1- From what I understand, this problem occur only since version 1.5.x of cygwin. Is that right? 2- Is it possible to install a older version of cygwin (we have all the file of version 1.3.22-1 except the setup.exe). When we try to install cygwin with the setup.exe from the web page and with the files from a local directory, we have errors. Is it possible to have an older version of setup.exe? Boris -- 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/
Re: Unable to delete .X11-unix\X0 file
Harold L Hunt II wrote: Boris Mayer-St-Onge wrote: Hi everybody, We have Cygwin 1.3.22-1 installed on a Windows XP sp1 machine with XFree86 4.3.0-1. The computer is part of a domain and can be use by several users. The installation on Cygwin/XFree86 has been done as follow : 1- As Administrator, we have installed Cygwin/XFree86 on a local D:\ drive (so not at the standard folder). 2- We have edited the file usr\X11R6\bin\starxwin.bat to set correctly the variable CYGWIN_ROOT. You shouldn't need to do that if you are running startxwin.bat from the d:\ drive and Cygwin was installed to d:\cygwin. On the other hand, if you used a directory other than d:\cygwin, you would have to set CYGWIN_ROOT. We effectively do not use the d:\cygwin directory. When we run Cygwin/XFree86, everything is correct for everybody. Unfortunately, when a user close his session without exiting Cygwin/XFree86, the file tmp\.X11-unix\X0 is not deleted. When an other user try to open Cygwin/XFree86, the application doesn't start since the file tmp\.X11-unix\X0 is present and the user is not able to delete it. As administrator I must then delete the file. I have try to modify the permissions on folder tmp and tmp\.X11-unix to allow users to delete the XO file but I doesn't work. So my questions are : 1- Is the above situation normal? 2- If not, what should I forget to do during the installation and configuration? 3- If yes, is it possible to allow users to delete XO file? Thanks in advance for suggestions and answers. Short of an administrative permissions fix (which I still think should work), I haven't found how. Do you have suggestions? I can only suggest that maybe it is time we start trapping the logoff/shutdown messages and call GiveUp when this happens. I would think that Windows would send the WM_QUIT or WM_CLOSE message to all open applications in these cases, but I could be wrong. Are the users simply turning the machine completely off? If so, then you would need to retrain the users before looking for other solutions. No, the users only close their session. They know they must close Cygwin before log out but with the new version, with -multiwindow (we love it), users close the xterm but sometime forgot to close the Cygwin/XFree86 Server. Boris
Unable to delete .X11-unix\X0 file
Hi everybody, We have Cygwin 1.3.22-1 installed on a Windows XP sp1 machine with XFree86 4.3.0-1. The computer is part of a domain and can be use by several users. The installation on Cygwin/XFree86 has been done as follow : 1- As Administrator, we have installed Cygwin/XFree86 on a local D:\ drive (so not at the standard folder). 2- We have edited the file usr\X11R6\bin\starxwin.bat to set correctly the variable CYGWIN_ROOT. When we run Cygwin/XFree86, everything is correct for everybody. Unfortunately, when a user close his session without exiting Cygwin/XFree86, the file tmp\.X11-unix\X0 is not deleted. When an other user try to open Cygwin/XFree86, the application doesn't start since the file tmp\.X11-unix\X0 is present and the user is not able to delete it. As administrator I must then delete the file. I have try to modify the permissions on folder tmp and tmp\.X11-unix to allow users to delete the XO file but I doesn't work. So my questions are : 1- Is the above situation normal? 2- If not, what should I forget to do during the installation and configuration? 3- If yes, is it possible to allow users to delete XO file? Thanks in advance for suggestions and answers. Boris