Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Setting Permissions | Users, Roles and The Permissions
Linux Basics
course content

Course Content

Linux Basics

Linux Basics

1. About Linux
2. Virtual Machine
3. Fundamental Skills
4. Users, Roles and The Permissions

bookSetting Permissions

In this section, we will explore the process of configuring access rights in Linux, providing you with the necessary knowledge for effectively controlling who has access to your information. From understanding basic concepts to practical examples of access rights configuration, this section will help you ensure the security of your system and data.

In Ubuntu, individual users, groups, and other users have default access permissions. Here are some key details:

  1. File Owner: Has all access rights: read, write, and execute (rwx);
  2. File Group: Typically has read and write permissions (rw);
  3. Other Users: Have only the right to read (r).

These permissions can be modified using the chmod command.

Explanation of Parameters

The command chmod u=rw,g=r,o=- myfile.txt sets the following permissions for the file myfile.txt:

  1. The user (owner) gets read and write permissions (rw);
  2. The group gets read permission (r);
  3. Others have no access (-).

This command strictly limits access to the myfile.txt file, allowing only the owner to read and write to it, while allowing the group to read and denying access to all other users.

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 4
We're sorry to hear that something went wrong. What happened?
some-alt