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.9.01(2d ago)0161GPL-3.0-or-laterPHPCI passing

Since Mar 27Pushed yesterday1 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 yesterday

READMEChangelogDependencies (10)Versions (14)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

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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 ~12 days

Recently: every ~28 days

Total

12

Last Release

2d ago

Major Versions

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

v4.5.12.01 → v5.0.8.012026-06-05

v4.5.13.01 → v5.0.9.012026-08-08

### 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 (78 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.6k10](/packages/helsingborg-stad-municipio)[october/rain

October Rain Library

1601.7M102](/packages/october-rain)[rainlab/user-plugin

User plugin for October CMS

11855.3k16](/packages/rainlab-user-plugin)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19256.6k4](/packages/civicrm-civicrm-drupal-8)[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.

226.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

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