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. mutms/moodle-tool\_musudo

ActiveMoodle-tool

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

Privileged sessions (aka sudo) plugin for Moodle LMS

v5.0.6.04(1mo ago)001GPL-3.0-or-laterPHPCI passing

Since Mar 27Pushed 1mo 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 1mo ago

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

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

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

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

35

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

2

Last Release

46d ago

Major Versions

v4.5.10.04 → v5.0.6.042026-03-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/695f869d2f3a2064591dbec4abc039ec2bac653c83d959286f67e9993527aa47?d=identicon)[mutms](/maintainers/mutms)

---

Top Contributors

[![skodak](https://avatars.githubusercontent.com/u/241453?v=4)](https://github.com/skodak "skodak (66 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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[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.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)

PHPackages © 2026

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