Simple Python-based setuid+setgid+setgroups+exec. A port of https://github.com/tianon/gosu
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pysu-1.0.1.tar.gz
.
File metadata
- Download URL: pysu-1.0.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e9e617083c7f801b066e89c4185eacba0944f2d3c11f38c66460b1eee3e292 |
|
MD5 | 8ceefa1f7ce09cb182138b903a7dc2dd |
|
BLAKE2b-256 | 2499ecac65ffcc82e4aeab5afd4075ff658feaca451a400768bcfdd8152ea91b |
File details
Details for the file pysu-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pysu-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65bb4f014275baf066fba1162dc137ad0293f7e60c18ddb84bf520153678ac3 |
|
MD5 | 2f6ccd5b1fab72a3121bc4b661f9a03f |
|
BLAKE2b-256 | 9aaee9797783548f7db41f1556fabbd5f336dd93c258514c97f817fd4cdaceca |