Common Lisp Package: COM.INFORMATIMAGO.COMMON-LISP.UNIX.PASSWD

This package exports a function to read unix passwd files. License: AGPL3 Copyright Pascal J. Bourguignon 2004 - 2012 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/>

README:

FUNCTION

Public

ENTRY-GECOS (INSTANCE)

The user GECOS field (a list of strings).

ENTRY-GID (INSTANCE)

The user Group ID (integer).

ENTRY-HOME (INSTANCE)

The user home directory (string).

ENTRY-LOGIN (INSTANCE)

The login of the user (string).

ENTRY-PASSWD (INSTANCE)

The password of the user (string).

ENTRY-SHELL (INSTANCE)

The user shell (string).

ENTRY-UID (INSTANCE)

The User ID (integer).

READ-PASSWD (&OPTIONAL (PASSWD-FILE-PATH /etc/passwd))

DO: Read a passwd file. PASSWD-FILE-PATH: The pathname of the passwd file. Default: "/etc/passwd". RETURN: A list of passwd ENTRY structures.

Undocumented

SETFENTRY-GECOS (NEW-VALUE INSTANCE)

SETFENTRY-GID (NEW-VALUE INSTANCE)

SETFENTRY-HOME (NEW-VALUE INSTANCE)

SETFENTRY-LOGIN (NEW-VALUE INSTANCE)

SETFENTRY-PASSWD (NEW-VALUE INSTANCE)

SETFENTRY-SHELL (NEW-VALUE INSTANCE)

SETFENTRY-UID (NEW-VALUE INSTANCE)

Private

Undocumented

COPY-ENTRY (INSTANCE)

ENTRY-P (OBJECT)

MAKE-ENTRY (&KEY ((LOGIN DUM0) ) ((PASSWD DUM1) ) ((UID DUM2) 0) ((GID DUM3) 0) ((GECOS DUM4) NIL) ((HOME DUM5) ) ((SHELL DUM6) ))

PARSE-PASSWD (LINE)

MACRO

Public

Undocumented

ENTRY-NAME (ENTRY)

CLASS

Public

ENTRY

A unix /etc/passwd entry.