„LnxUser PHP Class Reference” változatai közötti eltérés

Innen: IT documentation
Nincs szerkesztési összefoglaló
44. sor: 44. sor:
== Methods ==
== Methods ==


=== [[lnxUser::existsUser]] ===
* [[lnxUser::existsUser]]
* [[lnxUser::existsGroup]]
* [[lnxUser::getUser]]
* [[lnxUser::getGroup]]
* [[lnxUser::addUser]]
* [[lnxUser::addGroup]]
* [[lnxUser::modifyUser]]
* [[lnxUser::modifyGroup]]
* [[lnxUser::deleteUser]]
* [[lnxUser::deleteGroup]]
* [[lnxUser::authUser]]
* [[lnxUser::isMember]]
* [[lnxUser::getPassHash]]


=== lnxUser::existsGroup ===
=== lnxUser::getUser ===
=== lnxUser::getGroup ===
=== lnxUser::addUser ===
=== lnxUser::addGroup ===
=== lnxUser::modifyUser ===
=== lnxUser::modifyGroup ===
=== lnxUser::deleteUser ===
=== lnxUser::deleteGroup ===
=== lnxUser::authUser ===
=== lnxUser::isMember ===
=== lnxUser::getPassHash ===
[[Kategória:LnxUser]]
[[Kategória:LnxUser]]

A lap 2021. szeptember 19., 15:09-kori változata

Introduction

Basically this library a php interface of useradd, groupadd, usermod, groupmod, userdel, groupdel, mkpasswd linux commands. You can manage easily the linux users and groups with this library from a php apllication.

Requirements

  • Of course this library can work just linux environment.
  • The running user of php environment must has root privileges for manage the users and groups.
  • Must enable the shell_exec function.
  • This library should use the mkpasswd linux command, you have to install it if necessary.
  • Tested on Ubuntu with PHP 7.0 - 8.1 versions.

Features

  • Create a linux user or a group.
  • Get all information about a linux user or a group.
  • Set all attributes of a linux user or a group.
  • Delete a linux user or a group.
  • Examine if exists a linux user or a group.
  • Authenticate a linux user.
  • Generate password hash.

Constants

Value Constant Description Note
md5 LNX_PH_MD5 (string) MD5-based crypt
sha-256 LNX_PH_SHA256 (string) SHA-256-based crypt
sha-512 LNX_PH_SHA512 (string) SHA-512-based crypt

Methods