Skip to main content

Linux user manager

Project description

USYS – Linux User Manager

Version Python PyPI Status Build License

USYS is a simple command-line Linux user and group management tool. It provides an interactive interface to manage users and groups using clear commands and short aliases.

📚 Contents

Installation

pip install usys

[!IMPORTANT] usys is a terminal application. I recommend installing it with pipx.

Features

  • Create, modify, and delete users
  • Create and manage groups
  • Add users to groups
  • View user and group information
  • Simple command aliases for faster usage

Disclaimer:

This program may not always work as intended. Use it at your own risk, especially in production environments or large projects.

The program was primarily tested on Arch Linux. Other Linux distributions may behave differently.

Most operations require sudo permissions (except for listing functions), so make sure you understand what the program does before using it.

Usage:

Navigate between shells using their commands. For example, type 'user' or 'u' to enter the user shell mode. Inside each shell you can execute commands related to that category. Each shell also provides its own help functions.

Commands:

Click to open

📦 Root Commands

These commands switch you into dedicated management shells:

Alias Command Description
u user Enter user management shell
g group Enter group management shell
p permission Enter permission management shell
ss ssh Enter SSH setup shell
sa samba Enter Samba setup shell
a apache Enter Apache setup shell
h help Show root help menu
q exit Exit program

👤 User Commands

Alias Command Description
au adduser Create a new user
du deluser Delete a user
pw passwd Change user password
ag appendgroup Add user to group
ar rmfgroup Remove user from group
cn chname Change username
cs chshell Change user shell
luu lockuser Lock user account
ulu unlockuser Unlock user account
se setexp Set account expiration
re rmexp Remove expiration
uid chuid Change user ID
lu listusers List all users
lug listusergroups List user's groups
hd homedir Show home directory
pi passinfo Show password info
ul userlocked Check if locked
ued userexpday Show expiration day
idu iduser Show user ID info
gu getentuser Get user from system DB
h help Help menu
hf helpf Full help
q quit Exit shell

👥 Group Commands

Alias Command Description
ga addgroup Create new group
gr rmgroup Remove group (from system)
cg chgroup Rename group
gd delgroup Delete group
lg listgroups List all groups
gid chgid Change group ID
gi groupinfo Show group info
h help Help menu
hf helpf Full help
q quit Exit shell

🔐 Permission Commands

Alias Command Description
v view View permissions
c chmod Change file permissions
co chown Change file owner
cg chgrp Change group ownership
au adduser Add user permission
ag addgroup Add group permission
ru rmuser Remove user permission
rg rmgroup Remove group permission
rc rchmod Recursive chmod
rco rchown Recursive chown
rcg rchgrp Recursive chgrp
h help Help menu
hf helpf Full help
q quit Exit shell

🔑 SSH Commands

Alias Command Description
i install Install OpenSSH
e enable Enable SSH service
gk genkey Generate SSH key
lk listkeys List SSH keys
gh github Setup GitHub SSH
t test Test SSH connection
s setup Full SSH setup
h help Help menu
hf helpf Full help
q quit Exit shell

📁 Samba Commands

Alias Command Description
i install Install Samba
st start Start Samba service
sp stop Stop Samba
e enable Enable Samba
d disable Disable Samba
r restart Restart Samba
s status Service status
au adduser Add Samba user
ru removeuser Remove Samba user
eu enableuser Enable Samba user
du disableuser Disable Samba user
ms mkshare Create shared folder
rs rmshare Remove shared folder
o owner Set folder owner
c chmod Set folder permissions
ac addconfig Add share config
ls shares List shares
tc testconf Test config
con connections Active connections
p perms Folder permissions
f files List shared files
h help Help menu
hf helpf Full help
q quit Exit shell

🌐 Apache Commands

Alias Command Description
i install Install Apache
x extras Install extra modules
st start Start Apache
sp stop Stop Apache
r restart Restart Apache
ss status Check status
ct configtest Test configuration
ts testsite Create test site
vh vhost Create virtual host
en enable Enable site
di disable Disable site
al accesslog View access log
el errorlog View error log
h help Help menu
hf helpf Full help
q quit Exit shell

Flags (run outside USYS):

  • usys --version | Show the installed version
  • usys --update | Check for updates and install if available
  • usys --helpf | Show full help message

Documentation and source code:

https://github.com/WattoX00/usys https://pypi.org/project/usys/

If you encounter any issues, please report them here: https://github.com/WattoX00/usys/issues

Thank you for using USYS!

❤️ Support

If this project saved you time, taught you something, or made your day a little easier, you can support its development here:

👉 Buy me a coffee via PayPal

Your support helps keep the project:

  • Actively maintained
  • Continuously improved
  • Free and open source

Thanks for being part of the community 🤝

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

usys-0.1.4.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

usys-0.1.4-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file usys-0.1.4.tar.gz.

File metadata

  • Download URL: usys-0.1.4.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for usys-0.1.4.tar.gz
Algorithm Hash digest
SHA256 067bf411e563a5d25de8af41a460cf1944187e94cd86b371eaa26c5e76738457
MD5 f5422576bc2036f41ba3b79fd4757de4
BLAKE2b-256 02dca56858547602aa5466fb108bf018cb3f06c39599a1fbb0806066f65d2b56

See more details on using hashes here.

File details

Details for the file usys-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: usys-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for usys-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 70c331c5e27c97cd5f923e6b7786b4b5439b797277fc9dd33c4e8b87526849b5
MD5 0e87b5ced4d0beaf332d276f31a2c622
BLAKE2b-256 2f367762fce6e02a7e89798289307923d55d92897f53fce1b5d43293084c98d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page