security/p5-Unix-Passwd-File 0.251 DragonFly
Manipulate passwd and group entries
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10, GPLv1+
- Categories
- perl5, security
- Package size
- 24.7 KiB, 129.6 KiB installed
Description
Unix::Passwd::File can be used to read and manipulate entries in Unix system password files (/etc/passwd, /etc/group, /etc/group, /etc/gshadow) but can also be told to search in custom location, for testing purposes).
This module uses a procedural (non-OO) interface. Each function in this module open and read the passwd files once. Read-only functions like `list_users()` and `get_max_gid()` open in read-only mode. Functions that might write to the files like `add_user()` or `delete_group()` first lock `passwd.lock` file, open in read+write mode and also read the files in the first pass, then seek to the beginning and write back the files.
No caching is done so you should do your own if you need to.
In the other systems
| System | Port | Version |
|---|---|---|
| DragonFly | security/p5-Unix-Passwd-File | 0.251 |
| FreeBSD | security/p5-Unix-Passwd-File | 0.251 |
Install
Binary package:
pkg install p5-Unix-Passwd-File
From DPorts:
cd /usr/dports/security/p5-Unix-Passwd-File && make install clean
Dependencies
Run dependencies 4
No port depends on this one.