Moodle Plugins directory: Privileged sessions (aka sudo) | Moodle.org
Privileged sessions (aka sudo)
Administration tools ::: tool_musudo
Maintained by
Petr Skoda
Privileged sessions (also known as sudo) plugin improves security and user experience for administrators, site managers and global teachers. Part of the MuTMS suite.
Latest release:
23 sites
191 downloads
5 fans
Current versions available: 2
Allows administrators and privileged users to log in with a low-privilege account and switch to a privileged session only when needed — similar to sudo on Linux. This follows security best practice of not using administrator accounts for daily tasks. Privileged sessions can be protected with existing MFA factors for additional security.
A secondary use case is working around bugs that appear when a user holds both teacher and student roles in the same course — the user can be enrolled as a normal student and switch to a privileged session only when acting as an editing teacher.
Features
- Low-privilege daily accounts with on-demand privilege escalation
- Configurable roles and contexts per privileged user
- Optional MFA verification before starting a privileged session
Configuration
- Log in as admin
- Go to Site administration / Users / Permissions / Privileged users
- Press Add privileged user
- Select the user to grant sudo access
- Define the roles and contexts where the user will have privileged access
- Optionally enforce MFA for additional security
Starting a privileged session
- Log in with your regular low-privilege account
- Click the user menu in the top right
- Select Start privileged session
- Press Continue or supply your MFA verification code
- End the privileged session once your management tasks are complete
Known limitations
- This plugin uses the Switch role feature internally — course-level privileges appear as "Switched roles" in the Moodle UI
Contributors
Petr Skoda (Lead maintainer)
Please login to view contributors details and/or to contact them
Comments