passwd-parser - A toy utility to parse /etc/passwd in unix machines and provide corresponding uid, full_name and groups from /etc/group
Write in Terminal as follows:
python passwd-parser.py [passwd_path] [group_path]
Describes all Arguments to Passwd-Parser
passwd_path path to passwd file # default /etc/passwd
group_path path to group file # default /etc/group
Write in Terminal as follows:
python passwd-parser.py
python passwd-parser.py /etc/passwd /etc/group
{
"ubuntu": {
"uid": "1000",
"full_name": "Ubuntu",
"groups": [
"adm",
"cdrom",
"docker",
"netdev",
"plugdev",
"floppy",
"audio",
"sudo",
"video"]
},
"man": {
"uid": "6",
"full_name": "man",
"groups": []
}
Written by Saumil Shah. https://github.com/hellosaumil
More details about this project can be found at : https://github.com/hellosaumil/passwd-parser
Report bugs to https://github.com/hellosaumil/passwd-parser/issues