In this post, I will explain how the Sudo module is used to access permissioned functions in Substrate.
If you have ever run a local Substrate node for testing or development, you have probably interacted with the Sudo module. More specifically, you might have noticed that the “Alice” account is special, and can do powerful things to your blockchain!
In this blog post, I will show you end to end how the Sudo module works, why “Alice” is able to use this module, and how it enables access to permissioned functions like the one which enables Substrate runtime upgrades.
What is Sudo?
sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser. It originally stood for “superuser do”… – Wikipedia
In short, sudo is a term used to represent the execution of some highly privileged operation by some highly privileged user. If you are trying to relate this to smart contracts on Ethereum, this is very similar to the “contract owner”, an account who is allowed to call onlyOwner functions.
Ext Link: https://www.shawntabrizi.com/substrate/the-sudo-story-in-substrate/