Thursday, May 1, 2008

Print user ID and group ID

# include “ourhdr.h”

int

main(void)

{

printf(“uid = %d, gid=%d \n”, getuid(), getgid() );

exit (0);

}

No comments: