user_info
Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 07 March 2008
Index
Return to Main Contents
NAME
user_info - print user information
SYNOPSIS
edrc/bin/user_info
[
-h
]
user_info
[
-u username
][
-c configfile
][
-R
]
user_info
-F FIELDNAME
[
-u username
][
-c configfile
]
user_info
-L
AVAILABILITY
WA2L/edrc
DESCRIPTION
The
user_info
command is used to display all information for a given user. With this
command a single interface is given to query all permissions granted to
a user. Therefore it is not needed to query each file that represent
a certain permission (passwd, ftpusers, ...) separately.
OPTIONS
- ''
-
When invoking
user_info
without an option, all information/permissions of a user are printed. If the
root
user starts the
user_info
command, all permissions are printed, if a non-root user uses
user_info
only the permissions that are readable by that user are printed. Therefore
user_info
does not add an extra security level, all information that would be possible
to be read by a user accessing the information directly (as viewing the
/etc/passwd
file) are accessible thru
user_info,
too.
- -h
-
usage message.
- -n username
-
The user whose permissions to display.
- -R
-
Print the complete user record (all fields) in
FIELDNAME='value'
format. This output is intended to be used for further data processing when
there is a need to compute all fields of a user. This is faster then accessing
all fields sequentially using the
-F
option. To display all possible fields, use the
-L
- -F FIELDNAME
-
Query the value for the given
FIELDNAME.
- -L
-
Print the complete list of all available fields including a short
description of the field.
- -c configfile
-
Specify a configfile deviating from the default
edrc/etc/user_info.cfg.
ENVIRONMENT
-
EXIT STATUS
- 0
-
no error.
- 2
-
operating system is not supported, yet. See
osid(3)
if you get this error.
- 4
-
usage printed.
- 6
-
the configuration file
user_info.cfg
does not exist.
- 11
-
temporary directory could not be claimed or created in
/tmp.
Check the system temporary directory
/tmp
if you get this error, it is an indicator of system intrusion.
FILES
- etc/user_info.cfg
-
configuration file of
user_info,
see
user_info.cfg(4)
for more information.
EXAMPLES
-
SEE ALSO
edrcintro(1),
user_info.cfg(4)
NOTES
-
BUGS
If a non-root user issues "
user_info -u username -F FIELDNAME
" and the
FIELDNAME
is a field where the calling user has no access to the information
(as to the encrypted password)
user_info
returns an empty string without informing, that the calling user has
no permission to view the value of that field.
user_info
is currently completely implemented for HP-UX only.
AUTHOR
user_info was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2008
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 00:14:32 GMT, March 08, 2025