mutms / moodle-tool_musudo
Privileged sessions (aka sudo) plugin for Moodle LMS
Package info
github.com/mutms/moodle-tool_musudo
Type:moodle-tool
pkg:composer/mutms/moodle-tool_musudo
Requires
- moodle/composer-installer: *
- moodle/moodle: 5.1.*||5.2.*
- mutms/moodle-tool_mulib: *
This package is auto-updated.
Last update: 2026-03-29 17:51:32 UTC
README
Privileged session management for standard Moodle™ LMS installations — fully open source under GPL 3.0, with no restrictions on commercial use. Part of the MuTMS suite.
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. Privileged sessions can be protected with existing MFA factors for additional security.
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
- Useful for working around bugs that appear when a user holds both teacher and student roles in the same course
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
Requirements
This plugin is included in the MuTMS distribution — no manual installation needed if you use the distribution.
Required plugins:
Documentation
See online documentation for more information.
MuTMS is an independent open-source project, not affiliated with Moodle HQ.