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.
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".