Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

Linux Definition Help

I have a homework assignment and need to define the following terms, however, I do not have my Linux book with me.  Can you please define the following with resources:

PID
UID
GID

Thanks
0
craryg
Asked:
craryg
1 Solution
 
venkatr_nCommented:
Here's your answer.


PID
Process identification. This is a number used by the kernel to identify a process.
http://unix.about.com/library/glossary/bldef-process-id.htm

UID:
http://unix.about.com/library/glossary/bldef-uid.htm


GID:
http://unix.about.com/library/glossary/bldef-gid.htm

0
 
NYCmitch25Commented:
My generic spin:

:PID:
PID is the Process ID and you can see that each process/program is assigned a PID number below. This is because computers understand numbers only (when it comes down to it). Below are the various Processes running on RH linux with a PID and user who started it. You can see the root ID is the administrator account and starts the key processes like 'init'. this process must start first because it is passed control of all processes from the 'kernel'. higher PIDS are created when users login like user mitch below.

USER       PID     START  PROCESS    
root         1    20:31   init
root         2    20:31   [keventd]
root         3    20:31   [kapmd]
root         4    20:31   [ksoftirqd_CPU0]
root         5    20:31   [kswapd]
root         6    20:31   [bdflush]
........
root       764    20:32   xinetd -stayalive
root       885    20:33   0:00 login -- mitch
mitch      992    20:33   0:00 ssh-agent /etc/X1
mitch     1008    20:33   0:00 kdeinit: Running.

:UID/GID:
Group ID is the same as PID but its the number given to the various groups in linux. Root has a group ID of 0 where user groups usually have higher numbers like Mitch UID=777 GID=777. The UID of Root is always 0 as well.

USER  UID GID   HOME   SHELL
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
.......
webalizer:x:67:67:Webalizer:/var/www/html/usage:/sbin/nologin
mitch:x:777:777::/home/mitch:/bin/bash
ibmuser:x:6969:500:work account:/home/ibmuser:/bin/bash
ibm:x:888:888::/home/ibm:/bin/bash
0
 
NYCmitch25Commented:
My generic spin:

:PID:
PID is the Process ID and you can see that each process/program is assigned a PID number below. This is because computers understand numbers only (when it comes down to it). Below are the various Processes running on RH linux with a PID and user who started it. You can see the root ID is the administrator account and starts the key processes like 'init'. this process must start first because it is passed control of all processes from the 'kernel'. higher PIDS are created when users login like user mitch below.

USER       PID     START  PROCESS    
root         1    20:31   init
root         2    20:31   [keventd]
root         3    20:31   [kapmd]
root         4    20:31   [ksoftirqd_CPU0]
root         5    20:31   [kswapd]
root         6    20:31   [bdflush]
........
root       764    20:32   xinetd -stayalive
root       885    20:33   0:00 login -- mitch
mitch      992    20:33   0:00 ssh-agent /etc/X1
mitch     1008    20:33   0:00 kdeinit: Running.

:UID/GID:
Group ID is the same as PID but its the number given to the various groups in linux. Root has a group ID of 0 where user groups usually have higher numbers like Mitch UID=777 GID=777. The UID of Root is always 0 as well.

USER  UID GID   HOME   SHELL
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
.......
webalizer:x:67:67:Webalizer:/var/www/html/usage:/sbin/nologin
mitch:x:777:777::/home/mitch:/bin/bash
ibmuser:x:6969:500:work account:/home/ibmuser:/bin/bash
ibm:x:888:888::/home/ibm:/bin/bash
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
arn0ldCommented:
what happened to your Linux book?

is your google working? -e.g.,
   linux tutorial  uid gid pid
  containing, e.g.,
   http://www.cs.washington.edu/orgs/acm/tutorials/intro-unix/unix_intro.html
0
 
zekkerCommented:
God I wish I had this when I was studying!
;-)    get others to do my homework for me! Man, you are on the right track!..............
0
 
NYCmitch25Commented:
where are our points! LOL b*tch!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now