想寫一個command,搜尋group內member - Linux

Table of Contents

想要寫一個commamd 來查詢某一group的user有誰

但不管用getgrnam() 或者是getgrnet() 都沒有辦法compiler

無法print出來

也想過給予gid 來搜尋, 但還是一直error

想請問這個問題點該怎麼解決?

謝謝大家



--

All Comments

Anthony avatarAnthony2015-06-02
/etc/group (?
好像還有gpasswd(?
Olive avatarOlive2015-06-06
getgrnet -> getgrent 有出現什麼訊息嗎?
Rosalind avatarRosalind2015-06-08
post your code ...
John avatarJohn2015-06-09
在C/Cpp板得解。這邊似乎被遺忘了呢。噓你不用轉錄
Agatha avatarAgatha2015-06-10
我剛剛看那個版你說的 code, 你對於 c 似乎很不熟
Emily avatarEmily2015-06-12
c 程式語言不熟悉,外加unix programming不熟悉
若你要的需求沒有得一定用c設計,建議你還是學一點
Quintina avatarQuintina2015-06-13
基本的 linux shell script 就可以了...