user -x userid

1 #include <sys/types.h>
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <stdio.h>
5 int main()
6 {
7 printf("uid:%d,gid:%d\n",getuid(),getgid());
8 exit(0);
9 }

 

posted @ 2015-05-16 16:47  pencil_zh  阅读(151)  评论(0编辑  收藏  举报