This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: problems setting permissions for sshd


On Wed, 30 Oct 2002, Marcos Lorenzo wrote:

> Vince Hoffman <Vince.Hoffman@uk.circle.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@MOZART ~$ id
> uid=1003(marcos) gid=512(domadmin) groups=0(everyone),513(domusers),544(admin),512(domadmin),545(users)
> marcos@MOZART ~$ ls -ln
> total 0
> drwxr-x---    2 1003     512             0 Oct 30 12:05 bin
> marcos@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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]