delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/28/10:10:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-Id: <200507281409.j6SE9us9028886@tigris.pounder.sol.net>
To: cygwin AT cygwin DOT com
From: cygwin AT trodman DOT com (Tom Rodman)
Subject: 'id' groups listing conflicts w/'net group GROUPNAMEHERE /domain'
Date: Thu, 28 Jul 2005 09:09:55 -0500
X-IsSubscribed: yes

The 'id' command indicates user staffuser1 is in group ABC_NA-CTX-Notepad-A.
I use this account 'staffuser1', and have no idea what group ABC_NA-CTX-Notepad-A
is; I do not think user staffuser1 is really in that group, but you could
prove me wrong (how?).

  This is causing problems in ssh sessions; Pierre A. Humblet supplied
  me with a workaround: (http://cygwin.com/ml/cygwin/2005-07/msg01287.html).
    
How can we determine if user staffuser1 is or is not in group ABC_NA-CTX-Notepad-A?

--
thanks,
Tom Rodman

console bash session:
--v-v------------------C-U-T---H-E-R-E-------------------------v-v-- 
~ $ uname -a
CYGWIN_NT-5.0 OurServer120 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin
~ $ mkgroup -l -d >/etc/group && echo ok/done
ok/done
~ $ id
uid=15773(staffuser1) gid=16027(XYZ_ES_STAFF) groups=544(Administrators),545(Users),19858(ABC_NA-CTX-Notepad-A),10513(Domain Users),16026(XYZ_ES_ADMIN),16027(XYZ_ES_STAFF),16024(XYZ_Users)
~ $ cygcheck -s 2>/dev/null|egrep -A4 '^Output from .*id.exe'
Output from c:\aut\cyg\bin\id.exe (nontsec)
UID: 15773(staffuser1)       GID: 16027(XYZ_ES_STAFF)
544(Administrators)       545(Users)                19858(ABC_NA-CTX-Notepad-A)
10513(Domain Users)       16026(XYZ_ES_ADMIN)       16027(XYZ_ES_STAFF)
16024(XYZ_Users)
--
Output from c:\aut\cyg\bin\id.exe (ntsec)
UID: 15773(staffuser1)       GID: 16027(XYZ_ES_STAFF)
544(Administrators)       545(Users)                19858(ABC_NA-CTX-Notepad-A)
10513(Domain Users)       16026(XYZ_ES_ADMIN)       16027(XYZ_ES_STAFF)
16024(XYZ_Users)
~ $ net group ABC_NA-CTX-Notepad-A /domain |tee /tmp/foo001|egrep -q staffuser1 || echo OOPs
OOPs
~ $ wc -l /tmp/foo001
32 /tmp/foo001

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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