Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 052010
 

Find the current user UID and GID

Answer:

Use the id command

E.g. check the UID and GID of the user - "mysql"

# id mysql

uid=106(mysql) gid=111(mysql) groups=111(mysql)

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>