|
|
1.1 ! root 1: .TH GETUID 1 ! 2: .CT 1 proc_man secur ! 3: .SH NAME ! 4: getuid, id \(mi get user identity ! 5: .SH SYNOPSIS ! 6: .B getuid ! 7: [ ! 8: .B - ! 9: ] ! 10: [ ! 11: .I arguments ! 12: ] ! 13: .PP ! 14: .B id ! 15: .SH DESCRIPTION ! 16: .I Getuid ! 17: prints on its standard output information about its invoker, ! 18: based on the effective user id, as presented in the password file. ! 19: With no arguments, ! 20: .I getuid ! 21: prints the login id of its invoker. ! 22: Arguments select which information to print: ! 23: .IP ! 24: .TF passwd ! 25: .TP ! 26: .B user ! 27: login id ! 28: .TP ! 29: .B group ! 30: group id ! 31: .TP ! 32: .B passwd ! 33: encrypted password ! 34: .TP ! 35: .B uid ! 36: numerical user id ! 37: .TP ! 38: .B gid ! 39: numerical group id ! 40: .TP ! 41: .B acct ! 42: comp center account number ! 43: .TP ! 44: .B bin ! 45: comp center output bin ! 46: .TP ! 47: .B home ! 48: home directory ! 49: .TP ! 50: .B shell ! 51: default shell ! 52: .PD ! 53: .PP ! 54: If the optional ! 55: .B - ! 56: or more than one argument is present, ! 57: the information is displayed in the form ! 58: .IP ! 59: user=name ! 60: .LP ! 61: as suitable for setting environment variables in the shell. ! 62: .PP ! 63: .I Id ! 64: prints the effective userid and groupid ! 65: and the login name. ! 66: The userid and groupid are printed numerically and, if ! 67: possible, textually. ! 68: .SH FILES ! 69: .TP ! 70: .F /etc/passwd ! 71: .TP ! 72: .F /etc/group ! 73: .SH "SEE ALSO" ! 74: .IR who (1), ! 75: .IR getuid (2), ! 76: .IR passwd (5), ! 77: .IR newgrp (1) ! 78: .SH BUGS ! 79: .I Getuid ! 80: reports the default group for the user, ! 81: not the current effective group id. ! 82: .br ! 83: The login id reported is the first one in the password file with ! 84: the correct numerical user id, not necessarily the login ! 85: for the current session.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.