diff options
Diffstat (limited to 'usr.sbin/user/userinfo.8')
-rw-r--r-- | usr.sbin/user/userinfo.8 | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/usr.sbin/user/userinfo.8 b/usr.sbin/user/userinfo.8 index 19f966a0a2f..172af7b9837 100644 --- a/usr.sbin/user/userinfo.8 +++ b/usr.sbin/user/userinfo.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: userinfo.8,v 1.11 2007/05/31 19:20:30 jmc Exp $ +.\" $OpenBSD: userinfo.8,v 1.12 2008/12/20 09:40:47 jmc Exp $ .\" $NetBSD: userinfo.8,v 1.8 2003/02/14 16:11:37 grant Exp $ .\" .\" Copyright (c) 1999 Alistair G. Crooks. All rights reserved. @@ -31,48 +31,49 @@ .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: December 20 2008 $ .Dt USERINFO 8 .Os .Sh NAME .Nm userinfo -.Nd displays user information +.Nd display user information .Sh SYNOPSIS .Nm userinfo -.Op Fl ev +.Op Fl e .Ar user .Sh DESCRIPTION The .Nm -utility retrieves the user information from the system. +utility displays information about the specified +.Ar user . +The fields shown are defined in +.Xr master.passwd 5 . +The encrypted password is only displayed if the calling user is the +superuser. .Pp -The following command line options are recognised: +The options are as follows: .Bl -tag -width Ds .It Fl e -return 0 if the user exists, and non-zero if the -user does not exist, on the system. -No information is displayed. +Do not display anything (quiet mode). This form of the command is useful for scripts which need to check whether a particular user name or UID is already in use on the system. -.It Fl v -perform any actions in a verbose manner. .El .Pp The .Ar user -argument may either be a user's name, or a UID. +argument may be either a user name or a user ID (UID). .Pp The .Nm -utility exits 0 if the user name or UID exists, and non-zero if it does not. -.Sh FILES -.Bl -tag -width /etc/usermgmt.conf -compact -.It Pa /etc/usermgmt.conf -.El +utility exits 0 if +.Ar user +exists, and non-zero if it does not. .Sh SEE ALSO +.Xr id 1 , .Xr passwd 5 , -.Xr usermgmt.conf 5 +.Xr groupinfo 8 , +.Xr user 8 .Sh HISTORY The .Nm |