delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/30/11:27:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 30 Oct 2002 11:26:46 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Marcos Lorenzo <marcos AT it DOT uc3m DOT es>
cc: cygwin AT cygwin DOT com
Subject: RE: problems setting permissions for sshd
In-Reply-To: <Pine.LNX.4.44.0210301303090.24822-100000@laud.it.uc3m.es>
Message-ID: <Pine.GSO.4.44.0210301123550.5605-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 30 Oct 2002, Marcos Lorenzo wrote:

> Vince Hoffman <Vince DOT Hoffman AT uk DOT circle DOT com> wrote [11:56am -0000]
>
>    VH > just making up a group entry is unlikely to work. to get your domain groups
>    VH > use mkgroup -d (making sure you are connected to your network.)
>
> That doesn't work, I need a group that has GID=512.
>
> marcos AT MOZART ~$ id
> uid=1003(marcos) gid=512(domadmin) groups=0(everyone),513(domusers),544(admin),512(domadmin),545(users)
> marcos AT MOZART ~$ ls -ln
> total 0
> drwxr-x---    2 1003     512             0 Oct 30 12:05 bin
> marcos AT MOZART ~$ mkgroup -d | grep -i admin
> Admins. del dominio:S-1-5-21-462973936-1154566708-996637233-512:10512:
>                                                                 ^^^^^
>
> As you can see the GID that mkgroup returns is 10512 not 512 as I have as
> my GID.
>
> I tried it but with the same results as my last e-mail
>
> m4c.

Marcos,

mkgroup and mkpasswd automatically add 10000 to the ids of the domain
groups and users (though there's an option to change that -- "-o", I
think).

Also, IIRC, you can simply edit the GID number (the next-to-last column)
in the groups file to put whatever number you need there (read the
security section in the User's Guide).  Try it and see -- don't forget to
back up the file.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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