Overview
Simple Python-based setuid+setgid+setgroups+exec. A port of https://github.com/tianon/gosu
Free software: BSD 2-Clause License
Installation
pip install pysu
You can also install the in-development version with:
pip install https://github.com/ionelmc/python-su/archive/master.zip
Documentation
Usage: pysu [-h] user[:group] command
Change user and exec command.
- positional arguments:
user command
- optional arguments:
- -h, --help
show this help message and exit
Development
To run all the tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
|---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
1.0.1 (2024-05-08)
Removed debug print.
1.0.0 (2024-04-12)
Dropped support for old Pythons. Minium supported version is 3.8.
Improved error handling and reporting.
Increased compatibility with gosu.
0.2.0 (2016-05-06)
Allow using “:group” as argument, just like gosu (it will use the current user, but with the given group).
0.1.0 (2016-04-19)
First release on PyPI.
Metadata
Release files for pysu 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pysu-1.0.1.tar.gz | 16.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pysu-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 kB
Release files / pysu-1.0.1.tar.gz
| Download URL | pysu-1.0.1.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6e9e617083c7f801b066e89c4185eacba0944f2d3c11f38c66460b1eee3e292
|
|
BLAKE2b-256 checksum How to use checksums |
2499ecac65ffcc82e4aeab5afd4075ff658feaca451a400768bcfdd8152ea91b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pysu-1.0.1-py3-none-any.whl
| Download URL | pysu-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c65bb4f014275baf066fba1162dc137ad0293f7e60c18ddb84bf520153678ac3
|
|
BLAKE2b-256 checksum How to use checksums |
9aaee9797783548f7db41f1556fabbd5f336dd93c258514c97f817fd4cdaceca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|