tiger0516
asked on
st_uid/st_gid & username/groupname
Hi folks,
I know how to get st_uid and st_gid. But st_uid and st_gid are numbers. How can get owner's name and group's name provided I already know corresponding st_uid and st_gid ?
Pls tell me which command I shall use and I will then check man page.
Thanks
I know how to get st_uid and st_gid. But st_uid and st_gid are numbers. How can get owner's name and group's name provided I already know corresponding st_uid and st_gid ?
Pls tell me which command I shall use and I will then check man page.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi tiger0516,
You'll have to open the files and read them.
Kent
You'll have to open the files and read them.
Kent
ASKER
I know how to open/read a file. But then?
Thanks
Thanks
ASKER
Got it. I need to import pwd.h.
Thanks anyway.
Thanks anyway.
ASKER
Could u pls give me an example?
Tks