Some bash scripts developed to facilitate My Core service management. Current script provide the following functions :
- Show empty user groups (grp_null option of mycore_users.script script)
- Show local users, aka users created locally, without a shibolleth provisionning process (local_usr option of mycore_users.script script)
- Show unused users accounts (old_usr option of mycore_users.script script)
- Show users without default files quota (non_def_quota option of mycore_users.script script)
- Send to IT operational team email end users lists (list_usr option of mycore_users.script script)
- Delete user who have not been connected for an expiration number of days (del_old_usr option of mycore_users.script script)
- Show current migration requests, option in relation via user_files_migration app (list_migr option of mycore_users.script script)
- Add users to groups from a csv file (mycore_add_user_group.sh script)
- Add users as admin of groups from a csv file (mycore_add_admin_group.sh script)
Syntax : usage:
- ./mycore_users.sh grp_null|local_usr|old_usr|non_def_quota|list_usr|list_migr|list_resto|del_old_usr
- ./mycore_add_user_group.sh csv_file
- ./mycore_add_admin_group.sh csv_file
Nota :
- list_migr needs https://github.com/CNRS-DSI-Dev/user_files_migrate installed and activated.
- list_resto needs https://github.com/CNRS-DSI-Dev/user_files_restore installed and activated.
- mutt and mysql client must be installed
- Owncloud must use MySQL database
- The scripts must be able to access the owncloud database
Theses tools are developed for an internal deployement of ownCloud at CNRS (French National Center for Scientific Research).
If you want to be informed about this ownCloud project at CNRS, please contact [email protected], [email protected] or [email protected] or [email protected]
Author: | Jérôme Jacques ([email protected]) |
Copyright: | Copyright (c) 2015 CNRS DSI |
License: | AGPL v3, see the COPYING file. |