Skip to content

Instantly share code, notes, and snippets.

@ghostflare76
Last active January 29, 2016 01:44
Show Gist options
  • Save ghostflare76/e9ab66c2599bfb94cfa3 to your computer and use it in GitHub Desktop.
Save ghostflare76/e9ab66c2599bfb94cfa3 to your computer and use it in GitHub Desktop.
h2.cygwin을 통해 설치시 password/group 이슈
cygwin 설치이후 신규 계정 생성시 해당 계정은 None 그룹으로 생성
이후 windows 연동시 권한 이슈가 발생됨
default group : none -> Domain Users의 groupID 변경필요 (ex:Domain Users : 1049089)
$ mkgroup -l > /etc/group : Windows local account 에서 조회후 Local Account 생성
$ mkgroup -D -S '_' >> /etc/group : Domain Controller에서 조회후 Domain Account 생성
/etc/password sample
ITMEXCH_Administrator:unused:10500:10513:Administrator,U-ITMEXCH\Administrator,
S-1-5-21-3757417154-3552349117-1967062438-500:/home/Administrator:/bin/bash
 The /etc/passwd file is a colon-separated list with the following definitions for each of the elements:
ITMEXCH_Administrator is the user name as known by Cygwin. If your domain account name does not exist as local user, the ITMEXCH_ prefix will not be shown.
unused is legacy and is unused.
10500 is the user ID, where high-number accounts (10000 and up) indicate domain accounts.
10513 is the group ID cross-reference with the entry in /etc/group where high numbers (10000 and up) indicate domain groups.
Administrator,U-ITMEXCH\Administrator is a comment field.
The mkpasswd command uses U-xxx\yyy to denote the domain and account name.
S-1-5-21-3757417154-3552349117-1967062438-500 is the Windows Security Identifier (SID) of the account.
/home/Administrator is the name of the user's home directory, which is equivalent to C:\cygwin\home\Administrator. This directory is automatically created on the first login if it does not already exist.
/bin/bash is the default shell, which is standard in Linux and UNIX environments. The Windows counterpart is the cmd.exe command.
The important point to note is that the /etc/passwd file maps Windows user accounts to Cygwin user accounts.
In the preceding example, the Cygwin account called ITMEXCH_Administrator maps to the ITMEXCH\Administrator Windows domain account. When you are logged in to Cygwin with this account, you are running as the Windows domain account from the operating system point of view.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment