delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/05/14:55:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <37FA48CA.21B0BACB@vinschen.de>
Date: Tue, 05 Oct 1999 20:51:54 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Kai Henningsen <kai AT cats DOT ms>
CC: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: not updating unwritable cache ../config.cache
References: <E11YWM5-0005ga-00 AT charlotte DOT intern DOT cats DOT ms>

Kai Henningsen wrote:
> 
> On 5 Oct 99, at 14:40, Corinna Vinschen wrote:
> 
> > 'ntsec' is definitely not the wrong option. 'ntsec' is the better
> > choice if you are using NTFS filesystems. 'ntea' is a hack that uses
> 
> What do I need for it, then?

Use mkpasswd and mkgroup to create /etc/passwd and /etc/group files.
In the current snapshots, the following rules are important:

- Dont use user and/or group names that are different from the
  NT account names.
  Ever:  administrators::544:
  Never: admins::544:
- Typically, group 513 is your primary group. This is `None' outside
  and `Domain Users' inside of NT domains.
  The primary group membership isn't important for `ntsec', so you
  may change your group entry in /etc/passwd to, e.g., administrators
  group:

	kai::1000:544:Kai Henningsen:/home/kai:/bin/sh

- Use `umask' command in your profile, e.g.: `umask 022'.

Try a `touch foo' and `ls -l foo'. Without `ntsec' you'll get:

  -rw-r--r-- 1 administ none        0 Oct 5 20:00 foo

With `ntsec':

  -rw-r--r-- 1 kai      administ    0 Oct 5 20:00 foo

> > And don't use an account, that is member of the administrators group.
> 
> Not really an option.

When you try `ntsec' you will see that this problem is gone.
Maybe, you get other ones... but I'm working hard in making
`ntsec' better.

And last but not least:
- Constructive feedback always welcome.
- Patches are gratefully accepted.

> 
> > In this case the file owner and the user are diverging.
> 
> Huh. NT bug?

No, NT `feature' ;-}
If a user is member of the administrators group, the administrators
group will be the owner of _every_ object that is created by him/her
(including files, processes, semaphores,...)
_if_ _not_ _explicitly_ _changed_! This job is done by `ntsec'.

Regards,
Corinna


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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