File: README.md

package info (click to toggle)
golang-github-tredoe-osutil 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 476 kB
  • sloc: makefile: 4
file content (53 lines) | stat: -rw-r--r-- 1,355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# user

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

[Documentation online](http://gowalker.org/github.com/tredoe/osutil/user)

## 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 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](http://mozilla.org/MPL/2.0/),
unless otherwise noted.  
Please read the [FAQ](http://www.mozilla.org/MPL/2.0/FAQ.html)
if you have further questions regarding the license.