From the course: Learning Linux Command Line

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Understand user roles and sudo

Understand user roles and sudo - Linux Tutorial

From the course: Learning Linux Command Line

Understand user roles and sudo

- [Narrator] Modern Linux is a multi-user environment. On older systems, and on single user systems, there's only one user, or rather there isn't really the concept of users. Whoever uses the computer is the system administrator, and they can do whatever they want. On a multi-user system, I can have a user, you can have a user and our files are kept separate in our individual home directories. We can create files that only one or another user can access. At the command line, we can switch between users with the SU command, which is variously referred to as set user, switch user or substitute user. To use SU, we write that command, followed by the name of the user we want to switch to, and then we'll need to provide the password for that user. One of the most common uses for switching users at the command line is to do some system administration tasks. There are two basic user roles on the…

Contents