Package COM.INFORMATIMAGO.COMMON-LISP.UNIX.PASSWD

This package exports a function to read unix passwd files.


License:

    AGPL3
    
    Copyright Pascal J. Bourguignon 2004 - 2015
    
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with this program.
    If not, see <http://www.gnu.org/licenses/>

(read-passwd &optional passwd-file-path)
function
DO:                 Read a passwd file.
PASSWD-FILE-PATH:   The pathname of the passwd file. Default: "/etc/passwd".
RETURN:             A list of passwd USER structures.
user
structure
A unix /etc/passwd USER.
(user-gecos user)
function
The user GECOS field (a list of strings).
(user-gid user)
function
The user Group ID (integer).
(user-home user)
function
The user home directory (string).
(user-login user)
function
The login of the user (string).
(user-passwd user)
function
The password of the user (string).
(user-shell user)
function
The user shell (string).
(user-uid user)
function
The user ID (integer).