Users and Groups
hello i want to print all the users and which group are they belong does anynone can help me?????????
|
Check /etc/passwd and /etc/group and read
Code:
man id |
You should iterate over the struct group* entries returned by getgrent().
See getgerent(3) and getpwuid(3) |
Thanks
thanks you help me a lot
|
All times are GMT -5. The time now is 07:24 AM. |