时间 : 16-10-09 栏目 : linux编程 作者 : 老薛 评论 : 1 点击 : 2,616 次
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main(void){
printf("Current process UID : %ld\n",(long)getuid());
printf("Current porcess EUID : %ld\n",(long)geteuid());
return 0;
}
本文标签: 显示当前进程的UID与EUID
除非注明,文章均为( 老薛 )原创,转载请保留链接: http://www.bdkyr.com/xtyw003/1940.html
我太崇拜你了!