LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2004, 12:31 PM   #1
bikov_k
Member
 
Registered: Sep 2004
Distribution: Fedora Core 5
Posts: 33

Rep: Reputation: 15
problem with command "id"


Here is the output of id with and without extra parameters and the last 2 lines of my /etc/passwd and /etc/group files. Please tell me why the output of the two id commands differ . How is that possible? 10x!

[kalo@glin kalo]$ id
uid=500(kalo) gid=501 groups=500(kalo),501
[kalo@glin kalo]$ id kalo
uid=500(kalo) gid=10000(shared) groups=10000(shared),500(kalo)

[kalo@glin kalo]$ tail -2 /etc/passwd
kalo:x:500:10000::/home/kalo:/bin/bash
shared:x:10000:10000wner of all shared stuff:/shared:/bin/bash
[kalo@glin kalo]$ tail -2 /etc/group
kalo:x:500:kalo
shared:x:10000:root,kalo,krem,ivo,neli,ftp-user,web-user,smb-user
 
Old 11-28-2004, 02:46 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Did you change your primary GID with the newgrp command somehow?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
"stalled" problem in " scp" command gentleshark Linux - Software 1 08-30-2005 02:08 AM
"stalled" problem in " scp" command gentleshark Linux - Networking 1 08-29-2005 12:41 PM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration