My Oracle Support Banner

How to use the usermgr RAD API in Python (Basic Examples) (Doc ID 2058018.1)

Last updated on JULY 29, 2016

Applies to:

Solaris Operating System - Version 11.1 and later
Information in this document applies to any platform.

Goal

Solaris 11.1+ includes a RAD API to add / modify / delete user or roles and get user informations (pkg://system/management/rad/module/rad-usermgr).

The API is documented in the usermgr(3RAD) man page. Unfortunately, it does not contain examples (RFE -  Bug 21865301 - usermgr needs more documentation).

This doc will show a few simple examples how to use this API in Python 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Ensure you have root privileges
 Ensure the system is configured with Python 2.6 and the package 'rad-usermgr' is installed
 How to show local user informations
 How to show LDAP user informations
 How to add a local user
 How to delete a local user
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.