delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/04/12/12:56:34

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
To: cygwin-developers AT cygwin DOT com
Reply-To: cygwin-developers AT cygwin DOT com
Subject: uid and gid for domain accounts.
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 13 Apr 2001 01:39:11 +0900
Message-ID: <s1sofu2oyxc.fsf@jaist.ac.jp>
Lines: 32
X-Mailer: Gnus v5.3/Emacs 19.34

Corinna,

I noticed duplicate ids in the passwd file generated by
`mkpasswd -l -d'. For example, the entries for Administrator
each of a localhost and a domain has the same uid.

Administrator::500:513:,S-1-5-21-1830945627-1768298809-2076119496-500:/home/Administrator:/bin/sh
Administrator::500:513:,S-1-5-21-2025429265-1343024091-682003330-500:/home/Administrator:/bin/sh

A chmod will change the owner of a file from domain's Administrator
into localhost's Administrator because of these entries.

The group file generated by `mkgroup -l -d' has the same
problem. The gid of None conflicts the gid of Domain Users.

None:S-1-5-21-2025429265-1343024091-682003330-513:513:
Domain Users:S-1-5-21-1830945627-1768298809-2076119496-513:513:

I guess mkpasswd and mkgroup should add a large number to the
ids for a domain, and it would be fine that an user can specify
the number with an option.

For example, if mkgroup -l -d -b 10000 generated the following
entries, the problem would be solved.
None:S-1-5-21-2025429265-1343024091-682003330-513:513:
Domain Users:S-1-5-21-1830945627-1768298809-2076119496-513:10513:

How about this idea?
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019