Sponsored Content
Full Discussion: processnaming
Top Forums UNIX for Dummies Questions & Answers processnaming Post 20920 by sdemba on Tuesday 7th of May 2002 04:26:19 PM
Old 05-07-2002
processnaming

I am confused of what a processes name is considered to be. Maybe answers the following questions may clear it up for me.

1) Is a processname the same thing as a UID?
2) What other ways can you name a process?

After doing a ps -ef cmd, amoung other output I extracted the following that seems to relate to me:

UID PID PPID C STIME TTY TIME CMD
root 9956 3572 0.0 16:00:31 ttyp6 0:00.04 ps -ef
steve 10046 3546 0.0 15:59:53 ttypc 0:00.04 emacs file.txt
steve 8185 3546 0.0 15:59:50 ttypc 0:00.04 emacs file.txt
steve 9860 3546 0.0 15:59:56 ttypc 0:00.04 emacs file.txt
steve 9290 8325 0.0 15:12:51 ttyp8 0:00.06 -csh (csh)
steve 3546 3348 0.0 08:23:42 ttypc 0:00.70 -csh (csh)
steve 10047 9290 0.0 15:57:53 ttyp8 0:00.02 vi finq9

If I execute the following command:

steve> ps -ef | grep processname | awk '{printf $1 " " $2 " " $3 "\n"}'

I get this output:

steve 7001 3572

3) Is Steve the process name?
4) Why does root show up as the UID when I do the ps -ef command?
5) bonus question: is a process by any other name still a process? (just kidding)


regards and thanks...

Steve
 
group(5yp)																group(5yp)

Name
       group - group file in a Yellow Pages environment

Description
       For each group, the file contains:

       Group name
       Encrypted password
       Numerical group ID
       Comma-separated list of all users allowed in the group

       This is an ASCII file.  The fields are separated by colons.  Each group is separated from the next by a new-line.  If the password field is
       null, no password is needed.

       This file resides in the directory.  Because of the encrypted passwords, it can and does have general read permission and can be used,  for
       example, to map numerical group ID's to names.

       A  group file can have a line beginning with a plus (+), which means to incorporate entries from the Yellow Pages.  There are two styles of
       + entries: All by itself, + means to insert the entire contents of the Yellow Pages group file at that point; +name  means  to  insert  the
       entry  (if any) for name from the Yellow Pages at that point.  If a + entry has a password or group member field that is not null, the con-
       tents of that field will override what is contained in the Yellow Pages.  The numerical group ID field cannot be overridden.

Examples
       +myproject:::bill, steve
       +:

       If these entries appear at the end of a group file, then the group myproject will have members bill and steve, and the password	and  group
       ID  of  the  Yellow  Pages entry for the group myproject.  All the groups listed in the Yellow Pages will be pulled in and placed after the
       entry for myproject.

Restrictions
       The command will not change group passwords.

Files
       ULTRIX file system group file

       Yellow Pages group map

See Also
       yppasswd(1yp), setgroups(2), crypt(3), initgroups(3x), passwd(5yp)

																	group(5yp)
All times are GMT -4. The time now is 12:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy