Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What does this tell me?

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
$ id
uid=1007(farly) gid=100(users) groups=100(users),109(handmin),111(toor)

What does this mean?
 
$ id
uid=1007(farly) gid=100(users) groups=100(users),109(handmin),111(toor)

Every user and group in Linux are mapped to a UID or GID. Your primary group is called "users", whose GID is 100, and your username is "farly", whose UID is 1007. You can compare this to an IP address and its hostname. Using descriptive names is easier to remember than some random number. The other 3 fields are the groups you are in and their respective GIDs.

This info is kept in the /etc/passwd and /etc/group files.

ChrisP
 
How do i add more groups to my name? (i have the root pass)
 
Add your username to the last column of the groups you want to be a member of in [tt]/etc/group[/tt].

//Daniel
 
Try this command...

gpasswd -a username group

[root@penguin root]# gpasswd -a jdoe salesgrp
Adding user jdoe to group salesgrp
[root@citrix root]#


Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top