*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> logname (1)              
Title
Content
Arch
Section
 

NAME    [Toc]    [Back]

     logname - display user's login name

SYNOPSIS    [Toc]    [Back]

     logname

DESCRIPTION    [Toc]    [Back]

     The logname utility writes the user's login name to standard
output followed
 by a newline (`0).

     The  logname utility explicitly ignores the LOGNAME and USER
environment
     variables because the environment cannot be trusted.

     The logname utility exits 0 on success or >0 if an error occurred.

SEE ALSO    [Toc]    [Back]

     who(1), whoami(1), getlogin(2)
      
      

STANDARDS    [Toc]    [Back]

     The   logname  utility  conforms  to  IEEE  Std  1003.2-1992
(``POSIX.2'').

HISTORY    [Toc]    [Back]

     The logname command appeared in 4.4BSD.

OpenBSD      3.6                           June      9,      1993
[ Back ]

LOGNAME(1)

Contents

 Similar pages
Name OS Title
getlog IRIX get user's login name
logname Linux print user's login name
userenv IRIX print user's login environment
profile HP-UX set up user's environment at login time
usermod Tru64 Modifies a user's login information on the system.
listusers HP-UX display user login data
logins HP-UX display system and user login data
auth_hostok FreeBSD functions for checking login class based login restrictions
auth_ttyok FreeBSD functions for checking login class based login restrictions
login_ok FreeBSD functions for checking login class based login restrictions
Credit Cards | Online Shopping | Remortgages | Tesco | Mortgage Calculator
Copyright © 2004-2005 DeniX Solutions SRL