Link to home
Start Free TrialLog in
Avatar of tiger0516
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
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tiger0516
tiger0516

ASKER

Which command?

Could u pls give me an example?

Tks
Hi tiger0516,

You'll have to open the files and read them.

Kent
I know how to open/read a file. But then?

Thanks
Got it. I need to import pwd.h.

Thanks anyway.