PHPackages                             mutms/moodle-tool\_musudo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mutms/moodle-tool\_musudo

ActiveMoodle-tool[Authentication &amp; Authorization](/categories/authentication)

mutms/moodle-tool\_musudo
=========================

Privileged sessions (aka sudo) plugin for Moodle LMS

v5.0.7.01(2mo ago)0121GPL-3.0-or-laterPHPCI passing

Since Mar 27Pushed 3w ago1 watchersCompare

[ Source](https://github.com/mutms/moodle-tool_musudo)[ Packagist](https://packagist.org/packages/mutms/moodle-tool_musudo)[ Docs](https://github.com/mutms/moodle-tool_musudo)[ RSS](/packages/mutms-moodle-tool-musudo/feed)WikiDiscussions MOODLE\_405\_STABLE Synced 3w ago

READMEChangelogDependencies (4)Versions (10)Used By (0)

Privileged sessions (aka sudo) plugin for Moodle™ LMS
=====================================================

[](#privileged-sessions-aka-sudo-plugin-for-moodle-lms)

[![MDL Shield](https://camo.githubusercontent.com/5c19db88af6149d49b8ff757a8b83b695f647c57c85f6d4b3776ee11206ee546/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f75726c3d68747470732533412532462532466d646c736869656c642e636f6d2532466170692532466261646765253246746f6f6c5f6d757375646f)](https://mdlshield.com/plugins/tool_musudo) [![Moodle Plugin CI](https://github.com/mutms/moodle-tool_musudo/actions/workflows/moodle-ci.yml/badge.svg)](https://github.com/mutms/moodle-tool_musudo/actions/workflows/moodle-ci.yml/badge.svg)

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](https://github.com/mutms).

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
--------

[](#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
-------------

[](#configuration)

1. Log in as admin
2. Go to Site administration / Users / Permissions / Privileged users
3. Press Add privileged user
4. Select the user to grant sudo access
5. Define the roles and contexts where the user will have privileged access
6. Optionally enforce MFA for additional security

Starting a privileged session
-----------------------------

[](#starting-a-privileged-session)

1. Log in with your regular low-privilege account
2. Click the user menu in the top right
3. Select Start privileged session
4. Press Continue or supply your MFA verification code
5. End the privileged session once your management tasks are complete

Known limitations
-----------------

[](#known-limitations)

- This plugin uses the Switch role feature internally — course-level privileges appear as "Switched roles" in the Moodle UI

Requirements
------------

[](#requirements)

> This plugin is included in the [MuTMS distribution](https://github.com/mutms/mutms) — no manual installation needed if you use the distribution.

Required plugins:

- [Additional tools library plugin](https://github.com/mutms/moodle-tool_mulib)

Documentation
-------------

[](#documentation)

See [online documentation](https://docs.mutms.org/musudo/) for more information.

---

> MuTMS is an independent open-source project, not affiliated with Moodle HQ.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance92

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

8

Last Release

69d ago

Major Versions

v4.5.10.04 → v5.0.6.042026-03-27

v4.5.10.05 → v5.0.6.052026-03-28

v4.5.10.06 → v5.0.6.062026-03-29

v4.5.11.01 → v5.0.7.012026-04-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203032388?v=4)[MuTMS](/maintainers/mutms)[@mutms](https://github.com/mutms)

---

Top Contributors

[![skodak](https://avatars.githubusercontent.com/u/241453?v=4)](https://github.com/skodak "skodak (74 commits)")

---

Tags

moodlemoodle-pluginmutms

### Embed Badge

![Health badge](/badges/mutms-moodle-tool-musudo/health.svg)

```
[![Health](https://phpackages.com/badges/mutms-moodle-tool-musudo/health.svg)](https://phpackages.com/packages/mutms-moodle-tool-musudo)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[rainlab/user-plugin

User plugin for October CMS

11854.7k15](/packages/rainlab-user-plugin)[discourse/wp-discourse

WordPress plugin that allows you to use Discourse as a community engine for your WordPress blog.

5419.6k](/packages/discourse-wp-discourse)[humanmade/authorship

Authorship

68182.3k](/packages/humanmade-authorship)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

206.7k](/packages/pressbooks-pressbooks-book)[winter/wn-user-plugin

User plugin for Winter CMS

1237.1k16](/packages/winter-wn-user-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
