Skip to main content

Tsundere wrapper for sudo command.

Project description

tsudo

Tsundere wrapper for sudo command.

Spice up your sudo password prompt with cute remarks. Hand-picked from most famous characters and internet memes. Also, you can add your own currated list of insults (in the future).

Installation

$ pip install tsudo --user

Enable sudo insults

Uncomment this line from your sudoers file

# Defaults insults

Enable credential caching

sudoers uses per-user time stamp files for credential caching. Once a user has been authenticated, a record is written containing the user ID that was used to authenticate, the terminal session ID, the start time of the session leader (or parent process) and a time stamp (using a monotonic clock if one is available).

Since pexpect spawn another child process using pty, each tsudo call will have different credentials. However, you can still use another tty creds by turning off tty_tickets.

Add this line to your sudoers file

Defaults !tty_tickets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tsudo, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size tsudo-0.0.5.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View
Filename, size tsudo-0.0.5-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page