1
0
Fork 0
mirror of https://github.com/Luzifer/password.git synced 2024-12-20 21:01:17 +00:00
password/vendor/github.com/tredoe/osutil/user
Knut Ahlers 8af625be60
Fix: Vendor new dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-10-06 22:59:38 +02:00
..
crypt Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
a_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
config_linux.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
config_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
crypt.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
crypt_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
dbfile.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
doc.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
error.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
file.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
group.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
group_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
gshadow.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
gshadow_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
id.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
id_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
README.md Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
shadow.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
shadow_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
user.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
user_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
util.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
util_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00
z_test.go Fix: Vendor new dependencies 2017-10-06 22:59:38 +02:00

user

Provides access to the users database. It is available for Linux (by now).

Documentation online

Installation

go get github.com/tredoe/osutil/user

To run the tests, it is necessary to run them as root.
Do not worry because the tests are done in copies of original files.

sudo env PATH=$PATH GOPATH=$GOPATH go test -v

Status

BSD systems and Windows unsopported.

The only backend built is to handle files (such as '/etc/passwd'), and it it not my priority to handle other backends like LDAP or Kerberos since my goal was to can use it in home systems.

My list of priorities are (for when I have time):

  • BSD systems (included Mac OS)
  • Windows

Configuration

Some values are got from the system configuration, i.e. to get the next available UID or GID, but every distribution of a same system can have a different configuration system.

In the case of Linux, the research has been done in 10 different distributions:

Arch
CentOS
Debian
Fedora
Gentoo
Mageia (Mandriva's fork)
OpenSUSE
PCLinuxOS
Slackware
Ubuntu

License

The source files are distributed under the Mozilla Public License, version 2.0, unless otherwise noted.
Please read the FAQ if you have further questions regarding the license.


Generated by Gowizard