Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ id(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

logname(C)

getuid(S)

sg(C)


 id(C)                           19 June 1992                           id(C)


 Name

    id - print user and group IDs and names

 Syntax

    id  [ -l ] [ -s ]

 Description

    The id command writes a message on the standard output, giving the user
    and group IDs and the corresponding names of the invoking process.  If
    the effective and real IDs do not match, both are printed.

    With the -s option, id also shows the supplemental group list.  On sys-
    tems that support a large number of supplemental groups, the -s option
    may produce a very long line.

    With the -l option, id outputs the Login User ID (LUID) of the caller.

    id -l produces output with the following format:

       uid=12460(fred) gid=7003(trusted) luid=12460(fred)

    and id -l -s produces:

       uid=12460(fred) gid=7003(trusted) luid=12460(fred)
       groups=7003(trusted),50(group)

    If the LUID is not set the output is:

       uid=0(root) gid=0(root) luid=-1(not set)


 See also

    logname(C) , getuid(S) , sg(C)

 Standards conformance

    id is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026