Adds gid, egid, sgid retrieval.

Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>
Adds username.

Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>
Adds terminal.

Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>