UID and GID

What does UID and GID signify?

Questions by super_sixes

Showing Answers 1 - 9 of 9 Answers

UncaAlby

  • Oct 22nd, 2008
 

User ID and Group ID. They are used for a first-cut security in Unix systems, in that files and programs can be restricted to certain groups, or to certain users.  Groups are kept in the /etc/group file, users and the group they belong to are kept in the /etc/passwd file.

Vijaymorey

  • Apr 28th, 2009
 

UID - User id
GID - Group id

We can find out using sample command fire @ $ promoit "id" you will user id & group id.
e. g step 1 : $ id ---> O/p get display immediately
uid=232(vijay) gid=1(staff)

This is actually string in the /etc/password user id = 232 and group = 1 user home directory = :/users/vijay:/usr/ and shell is ksh

vijay:!:232:1:Vijay:/users/vijay:/usr/bin/ksh

swetha_0505

  • Oct 26th, 2009
 

To find a user's UID or GID in Unix, use the id command.


To find a specific user's UID, at the Unix prompt, enter:
id -u username
Replace username with the appropriate user's username.


To find a user's GID, at the Unix prompt, enter:
id -g username


If you wish to find out all the groups a user belongs to, instead enter:
id -G username


If you wish to see the UID and all groups associated with a user, enter id
without any options, as follows:
id username


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.