This is the mail archive of the cygwin 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]

'id' groups listing conflicts w/'net group GROUPNAMEHERE /domain'


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/


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