Skip to main content

Python module to manipulate unix system accounts.

Project description

Python module to manipulate unix system accounts by calling standard unix commands user{add,mod,del} which do the actual system files manipulation.

Uses sudo to run the commands if not root (EUID not 0).


Unix Account packages are available from Cheese shop (PyPI) at

The project page is hosted on Github.

If you’ve never worked with git or contributed to a project on Github, there is a quick start guide.

If you find something wrong or know of a missing feature, please create an issue on the project page. If you find that inconvenient or have some security concerns, you could also drop me a line at <>.


pip install unixaccount



  • exceptions.Exception(exceptions.BaseException)

    • UnixAccountError

      • AlreadyExists
      • Busy
      • NotFound


create_user(username, group=None, homedir=None, password=None, mkhome=False, shell=None)
    Create a new user account

    Delete user account.

modify_user(username, group=None, homedir=None, password=None, mkhome=False, shell=None)
    Modify existing user account.

    Return numeric group ID for given group name or raise NotFound exception.

    Return numeric user ID for given username or raise NotFound exception.

    Return user name for given numeric user ID or raise NotFound exception


Copyright 2014 Michal Belica <>

Unix Account is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Unix Account is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Unix Account.  If not, see < >.

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 unixaccount, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size unixaccount-0.1.1.tar.gz (3.6 kB) File type Source Python version None 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