where is user.list in UNIX, which I can check its user id by using its username? Thanks a lot!
w*n
2 楼
/etc/passwd
【在 l***r 的大作中提到】 : where is user.list in UNIX, which I can check its user id by : using its username? Thanks a lot!
l*r
3 楼
sorry, maybe my question is not clear. I check /etc/passwd and it only explain some about root, deamon, sys, ftp .... There is no specific information on user id. I wonder how to check user id. like I know username is woodman, I want to know user id for it? Also, I want to know how to get information reversely (user id-> username )? Thanks a lot!!!
【在 w*****n 的大作中提到】 : /etc/passwd
w*n
4 楼
getpwnam, getpwuid - get password file entry
【在 l***r 的大作中提到】 : sorry, maybe my question is not clear. I check /etc/passwd : and it only : explain some about root, deamon, sys, ftp .... There is no : specific : information on user id. : I wonder how to check user id. like I know username is : woodman, I want : to know user id for it? Also, I want to know how to get : information : reversely (user id-> username )?
m*e
5 楼
ypcat -k passwd
【在 l***r 的大作中提到】 : sorry, maybe my question is not clear. I check /etc/passwd : and it only : explain some about root, deamon, sys, ftp .... There is no : specific : information on user id. : I wonder how to check user id. like I know username is : woodman, I want : to know user id for it? Also, I want to know how to get : information : reversely (user id-> username )?