Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <657B20E93E93D4118F9700D0B73CE3EA0D397239@goofy.epylon.lan> From: "Gupta, Sanjay" To: "'cygwin AT cygwin DOT com'" Subject: FW: question regarding id command Date: Fri, 5 Apr 2002 16:10:42 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" I have missed word "not" in my previous email. " Why the output of id -Gn and id -Gn Sgupta is NOT same , assuming that I am logged in as Sgupta " It looks like id -Gn prints all the groups (Primary, Secondary), if I put user name like id -Gn SGupta , it only prints the Primary Group. Is it true ? According to docmentaion of id command, it should print all (Primary, Secondary) groups. Please let me know, if I am wrong ? Thanks Sanjay ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ---- > When I issue the id command as follows > $id -Gn > > it gives me the following output > > Domain Users Everyone DBAs Epylon Employees Neptune DBA Operations > Administrators Users ORA_DBA > > $ id -Gn SGupta > > It gives only the following output > Domain Users > > $ whoami > SGupta > > My current user is SGupta, so when I include my username in id commands, > I do not see all groups which Sgupta belongs to. > > Why the output of id _Gn and id -Gn Sgupta is same , assuming that I am > logged in as Sgupta > > **Note**, The above commands gives me the expected result in Sun OS. > > Any thoughts, > > Thanks > Sanjay > > > -- 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/