JAVA/Sun Exam Questions

what is the effective UID and GID of the process?

Given:

# ls -l program1
-rwsr-xr-x 1 root other 32768 May 9 16:57 program1

and

# grep user1 /etc/passwd
user1:x:100:312::/export/home/user1:/bin/ksh

When user1 runs program1, what is the effective UID and GID of the process?

A.
UID 0, GID 100

B.
UID 0, GID 312

C.
UID 312, GID 100

D.
UID 100, GID 312