Cygwin: Difference between revisions
Jump to navigation
Jump to search
(Adding users) |
|||
Line 8: | Line 8: | ||
** ''SysInternals' Process Monitor'' |
** ''SysInternals' Process Monitor'' |
||
*** All back-quoted commands or <tt>$()</tt> commands in scripts fail until Windows is restarted |
*** All back-quoted commands or <tt>$()</tt> commands in scripts fail until Windows is restarted |
||
== Adding Users == |
|||
Create the user in Windows User Management first, then use command <tt>mkpasswd</tt> to add it to Cygwin environment. |
|||
<source lang=bash> |
|||
$ net user <username> <password> /add /yes |
|||
$ net localgroup <an_local_group> <username> /add |
|||
$ mkpassd -l -u <username> >> /etc/passwd |
|||
</source> |
Revision as of 15:35, 13 October 2008
Troubleshooting Cygwin
- Look for multiple copies of the cygwin DLL cygwin1.dll. Removes all copies that are not in the cygwin install directory (usually c:\cygwin).
- List of interfering software:
- NoMachine NX Client - installs a custom version of the Cygwin DLL which can cause multiple interferences:
- Cygwin crashes when multiple instances are launched.
- Running cygwin commands (like ls) in a NT command shell when another instance of cygwin is running creates application error (Memory cannot be "read").
- setup.exe fails because it runs several instances of bash.
- SysInternals' Process Monitor
- All back-quoted commands or $() commands in scripts fail until Windows is restarted
- NoMachine NX Client - installs a custom version of the Cygwin DLL which can cause multiple interferences:
Adding Users
Create the user in Windows User Management first, then use command mkpasswd to add it to Cygwin environment.
$ net user <username> <password> /add /yes
$ net localgroup <an_local_group> <username> /add
$ mkpassd -l -u <username> >> /etc/passwd