inflearn logo

Linux Permissions Masterclass – “From the Basics to Practical Work, Security, and Service Operations”

This course puts an end to operational vulnerabilities on Linux servers caused by incorrect permissions. Master file and directory permission control completely based on real-world practices.

(5.0) 4 reviews

280 learners

Level Basic

Course period Unlimited

Linux
Linux
Operating System
Operating System
security
security
security training
security training
Linux
Linux
Operating System
Operating System
security
security
security training
security training

What you will gain after the course

  • Can understand and manage the Linux file and directory permission system.

  • You can set and use special permissions such as Set-UID, Set-GID, and the Sticky-bit.

  • Fine-grained permission control is possible using Linux ACLs (Access Control Lists).

  • You can directly apply security settings for permissions on secure Linux servers in a practical environment.

  • Can analyze permission vulnerability cases occurring in web services and prevent and block them.

This course is not a superficial lecture that covers the permission structure of the Linux file system only at the level of basic concepts. Instead, it is designed as a practical, hands-on learning program that enables you to resolve permission issues, security risks, and service outages that arise in real-world operating environments.

Permissions are fundamental to operating Linux servers, but at the same time, a misconfiguration can undermine the stability of an entire service and directly cause a security incident. This course proactively prevents these risks and systematically guides learners to a level where they can accurately configure, interpret, and diagnose permissions.

Linux permissions cannot be mastered simply by memorizing the three letters, rwx.
In real-world environments, many factors must be considered, including file owners and groups, ACLs, special permissions (SetUID/SetGID/Sticky-Bit), the system accounts used by service processes, and the directory permissions accessed by DBMSs and web applications. Only by understanding these elements accurately can you satisfy both operational and security requirements.

This course covers the following topics in depth, and each session is designed around hands-on practice so that anyone can learn by practicing directly.

The course aims to systematically guide learners to the point where they can logically interpret this complex permission system and solve practical problems on their own
.

In addition, for the convenience of hands-on practice, the course provides an installation script that can automatically set up an Oracle 11g XE, Apache Tomcat, and JSP web application environment, as well as a 300-page PDF textbook that systematically organizes the entire course content.
(However, the PDF is protected by copyright, so external sharing and distribution are prohibited and it may be used only for the personal learning purposes of enrolled students.)

This course is designed to provide practical help to everyone who needs to build a deep understanding of Linux permissions, from beginners to professional server administrators, security personnel, and DevOps engineers.


Section 1. Setting Up the Practice Environment

We begin by systematically setting up the virtualization environment, OS installation, and terminal access environment essential for analyzing permissions and building services.

You will install distributions widely used in real-world enterprise environments, such as Rocky Linux 9 and Ubuntu 24.04, and establish a foundation that enables you to apply the same permission principles on any OS.

Learning Content

  • Explanation of the course overview and overall learning objectives

  • Configuring a VMware Workstation-Based Virtualization Environment

  • Rocky Linux 9 & Ubuntu 24.04 Installation Practice

  • Quick Installation and Initial Setup

  • MobaXterm / SSH Terminal Connection Environment Setup

This section forms the foundation of the entire course, and all subsequent permission exercises will be conducted in the Rocky Linux 9 environment.
Therefore, the virtual machine, accounts, services, and directory structure established in this stage will serve as the common foundation for all subsequent learning, including permission analysis, ACL exercises, and service-specific permission configuration.


Section 2. Users and Groups

In this section, you will systematically understand the structure of users and groups, which is fundamental to Linux permissions.
In addition to practicing commands for creating, deleting, and modifying accounts, we will explain step by step the structure of the /etc/passwd and /etc/shadow files.

In particular, the /etc/shadow file stores encrypted (hashed) password information that must not be exposed to regular users. We will cover how these hash values are generated and verified, how the SHA512 hash algorithm based on the crypt() function works, and what role salt values play in authentication security.

We also explain why access to the /etc/shadow file is restricted to root and what security incidents could result if the /etc/shadow file were exposed.

Learning Content

  • Understanding User and Group Structure

  • Practice with the useradd / userdel / usermod commands

  • UID/GID Structure Analysis

  • Differences between system accounts and regular accounts

  • How Home Directories Are Handled When Deleting an Account

  • Analysis of the field structure of the /etc/passwd file

  • Analysis of the field structure of the /etc/shadow file

What you will learn from this section includescuntegn

  • Principles of login authentication

  • How password hashes are generated

  • /etc/shadow Security Model

  • How accounts, groups, and UIDs/GIDs affect permission interpretation

  • User creation and deletion, as well as detailed management


You will be able to clearly understand them.

Section 3. Linux Permissions 1 – Basic Structure of Permissions

In this section, we explain the components that make up permissions based on the principles of how they actually work, rather than simply describing them, helping you logically interpret permission decisions. Through this section, you will gain a clear understanding of how permissions are interpreted and applied within the file system.

Learning Content

  • File Ownership and Permission Structure

  • How Read/Write/Execute Permissions Work

  • The difference between ACLs (Access Control Lists) and standard permissions

  • getfacl/setfacl Practice

  • The Impact of Permissions on Service Operation

  • Practice with permission change commands: chmod, chown, and chgrp

  • Introduction to the Concept and Risks of Special Permissions

  • Testing access to /etc/shadow, which regular accounts should not be allowed to access


Section 4. Linux Permissions 2 – Hands-on Practice with Standard Permissions (r, w, x)

One of the key aspects of the permissions course is experiencing permission failure cases firsthand. You will set up real test scenarios for each permission, compare the results of file access, and analyze why those results occur.

Learning Content

  • Differences in behavior depending on whether read (r) permission is present

  • Differences in behavior depending on whether write (w) permission is present

  • Differences in behavior depending on whether execute (x) permission is present

  • The impact of regular file and directory permissions on file access

This is a hands-on, practice-oriented section designed not for simple memorization, but to enable you to independently interpret the causes of malfunctions frequently encountered during service operations.


Section 5. Linux Permissions 3 – Advanced Special Permissions (SetUID, SetGID, Sticky Bit)

In this section, we go beyond simple conceptual explanations and use a variety of hands-on exercises to deeply analyze how special permissions actually work on real systems and what security implications they have.
Going one step beyond standard permissions, we also examine the impact of special permissions on service operations and system security from a practical perspective.

In particular, because improperly configured special permissions can immediately lead to security vulnerabilities, it is extremely important to understand their operating principles and application criteria accurately.


Learning Content

  • Analysis of How SetUID Works and Understanding the Internal Structure of the passwd Command

  • Practice how SetGID is applied to directories

  • Security issue scenarios that may occur in environments without the Sticky Bit

  • Testing the Potential for Exploitation of Programs Granted Special Permissions

  • The necessity of special permissions and methods for safely restricting them when operating services and applications

Through this section, learners will accurately understand special-permission vulnerabilities frequently exploited in real-world hacking and security incidents and acquire the proper configuration standards for operating systems securely.


Section 6. DBMS & WEB Services and Permissions

This section goes beyond simple permissions training. It is an advanced course in which you gain an understanding, through hands-on practice with DBMS and WEB applications, of how permissions are applied in actual service environments and how they affect service operation.

In a Rocky Linux 9 environment, you will directly install Oracle Database 11g XE and Apache Tomcat and use a JSP web application (the jumsu program) that operates on JDBC for practice.
The application is distributed as a prebuilt jumsu.war file, and after deploying this WAR file to Tomcat, you will experience the entire process of designing the required tables directly in the Oracle DB and integrating them so that the features work properly.

Through a detailed analysis of which directories the web application accesses internally, which permissions are required for the DB connection, and which account the Tomcat process runs under and which directories it needs read/write permissions for
, you will gain an in-depth understanding of how permissions affect the stability of services in real-world environments.

Additionally, because installing Oracle 11g XE and Tomcat can be difficult for beginners to follow, this course also provides a script that automates the entire installation and initial configuration, helping you quickly build the same environment and focus on the hands-on practice.

Learning Content

  • Installing Oracle Database 11g XE on Rocky Linux 9

  • Providing scripts to automate Oracle and Tomcat installation → Simplifying repetitive setup

  • Analysis of the oradata directory permission structure where Oracle data files are stored


  • Practice deploying and running the jumsu.war web application

  • Directly design the tables required for the Oracle DB and test JDBC integration


  • Permission configuration standards for secure Web Root directories and application deployment paths

Through this section, learners will
experience the complete architecture in which a JSP web application, Tomcat, and Oracle DB work together, and gain a clear, practical understanding of the role permissions play in the process.

This goes beyond simply learning about permissions and is a core section that equips you to interpret permissions from the comprehensive perspectives of service operations, security, and infrastructure engineering.


Section 7. Scheduled Daemon Services and Permissions (Cron)

This section provides an in-depth look at the operational structure and permission model of Cron, an essential scheduling service for Linux server administration. Rather than simply configuring scheduled tasks, it explains through hands-on practice which permissions Cron runs with and how user-specific cron files are created and managed in /var/spool/cron.

You will also practice automating rsync-based backups, which are frequently used in server operations, and directly verify under what permission conditions automation tasks succeed or fail in an actual service environment.

In particular, we analyze the relationship between user Cron and SetUID permissions, as well as the permissions and access rights involved.
This process also provides a detailed explanation of how the /var/spool/cron/사용자명 file is created and the security implications of its permissions.

Learning Content

  • Understanding the Structure of the Cron Service and How the Scheduler Operates

  • Analysis of the system cron's /etc/crontab

  • Configuring an automated backup schedule using rsync

  • Differences and Comparison Between System Cron and User Cron

  • Analyzing the structure of the /var/spool/cron/<user> file created when a user cron is generated


  • Cron configuration according to conditions (day of the week/time/interval)

Through this section, learners will go beyond simply configuring schedules and gain a practical understanding of which user permissions Cron runs with and how file permissions and directory permissions affect scheduled tasks.


Section 8. DNS Services and Permissions

DNS is a very important network service in Linux server environments and is a representative service that frequently experiences outages due to mistakes in permission settings. In particular, the permissions of the /var/named directory directly affect not only security but also the proper operation of the DNS service, so an accurate understanding is essential.

In this section, we cover everything from the basic principles of DNS to hands-on configuration, including BIND installation and setup, forward zone configuration, and writing automation scripts for primary and secondary DNS servers. Through practical exercises, you will clearly analyze the permission structures under which DNS services operate and identify which missing permissions cause errors.

You will also learn by writing scripts to automate DNS installation and removal yourself and deploying them to remote servers.

Learning Content

  • Understanding DNS concepts and nameserver architecture

  • Configuring the vim environment for DNS setup

  • Hands-on Practice Installing and Configuring a BIND-based DNS Server

  • Preliminary preparations for configuring primary and secondary DNS servers

  • Forward zone file configuration and query testing

  • Writing an automation script for DNS installation and removal

  • Deploy the written script to a remote server and run the installation/deletion.

  • Detailed Analysis of Key named.conf Configuration Items

  • /var/named Directory Permission Structure and Security Configuration Guidelines

  • Analysis of DNS query failure cases caused by incorrect permissions

This section is designed to go beyond simply setting up DNS and to help you fully understand DNS operations and permission models from a Linux permissions perspective. By understanding not only how the DNS service works but also the mechanisms by which permission errors lead to actual service outages, you will gain a comprehensive understanding of Linux permissions from the perspective of overall service operations.


Practical Outcomes You Can Achieve Through This Course

By taking this course, you will acquire the following practical skills.

  • The ability to fully understand and configure permission structures from the basics

  • Understanding the differences between ACLs and basic permissions, as well as considerations for service operations

  • Learn the risks of special permissions and acquire appropriate defense strategies

  • Ability to analyze the permission structures of DBMS, WEB, DNS, and other services

  • Acquire essential operational skills, including user and system account management, Cron administration, and file ownership management.

  • The ability to directly resolve permission-related issues that arise in real-world environments

This course covers content essential not only for beginners but also for practitioners, security professionals, and server administrators, and is designed as an in-depth program encompassing overall service operations based on permissions.


Section 9. Web Application Services and Permissions

APM (Apache · PHP · MariaDB)-based web services are the most widely operated architecture in Linux environments, but
incorrect permission settings can easily lead to installation errors, upload failures, database connection errors, and web shell vulnerabilities.


In particular, it is essential to understand exactly which user the Apache web server runs as, which directories PHP can access, and the permission structures required by real-world services such as WordPress, Gnuboard, and phpMyAdmin.

In this section, we cover the entire process from setting up an APM environment and analyzing Apache configuration files to practicing the installation of Gnuboard, WordPress, and phpMyAdmin from a practical perspective, clearly analyzing through step-by-step exercises which permissions web services use and how they operate as users.


Additionally, we reproduce common issues that frequently occur during web service installation and initial setup, such as permission errors, directory write failures, and access control, based on real-world cases, and present safe permission configuration methods for resolving them.


Learning Content

  • APM (Apache · PHP · MariaDB) Environment Configuration

  • APM Installation and Service Runtime Account Analysis

  • Hands-on practice installing GNU Board and configuring data directory permissions

  • Analysis of the WordPress installation process and permission standards for the wp-content/uploads directory

  • phpMyAdmin installation and security configuration for the config directory

  • Analysis of Key Directives in Apache Configuration Files (httpd.conf, vhost.conf)

  • Analysis of Permission Error Cases Occurring During Web Service Operation


  • Permission model for web service directory structures and criteria for secure permission settings

  • Principles for Operating Apache Processes with Minimum Privileges

  • Analysis of web security vulnerabilities (such as database information exposure) caused by incorrect permissions


This section is designed not merely to build a web service, but to help you fully understand how the permission model is actually applied in an APM environment and how it affects service stability and security from a Linux permissions perspective.

By clearly understanding the role permissions play at every stage—from installation and operation to security—you will develop the practical skills needed to reliably manage web service operations as a whole.

Recommended for
these people

Who is this course right for?

  • System administrators and developers who operate or manage servers

  • Those who want to properly learn Linux file/directory permission management

  • Those who want to build a solid foundation in Linux permission security to prepare for practical work.

  • Those who want to organize permissions and service-level privileges based on practical standards

  • Those who want to diagnose and respond to security issues caused by incorrect permission settings

  • Those who want to understand permission issues all at once, from the fundamentals to practical applications

  • For those who want to get a firm grasp on confusing permissions issues through this course

Need to know before starting?

  • Knowledge of basic Linux commands and shell usage is required.

Hello
This is linuxmasternet

Career Verified

381

Learners

6

Reviews

8

Answers

5.0

Rating

3

Courses

Instructor Introduction

Since first encountering Linux in 1995, I have accumulated over 30 years of experience in Linux server operations, networking, and information security.

Since 2001, I have accumulated more than 25 years of hands-on and teaching experience in Linux and information security, and based on this experience, I strive to provide practical, hands-on training that can be applied not only to theory but also to real-world server deployment and operational environments.


[Key Career History]

  • CEO of Linux Master Net

  • Information Security Major

  • Received the 2014 Commendation from the President of the Korea Internet & Security Agency (KISA)

  • Conducted penetration testing and security vulnerability assessments of information systems for the Supreme Prosecutors’ Office, Allianz Life, Dongbu Securities, and others.

  • Former Expert Committee Member for Linux Master at the Korea Association for ICT Promotion

  • (Former) Mentor for the Student Union of Information Security (SUA)

  • (Former) Head of the Education Team, Korea Hacking Security Association

[Teaching Experience]

  • Started teaching in the fields of Linux and information security in 2001

  • As of 2026, conducting lectures on Linux servers, networks, and information security.

  • Korea Internet & Security Agency (KISA) – Special Lecture on Linux Security

  • Professional training institutions – Information security lectures at Seoul Hyundai Vocational School, KH Information Education Center, Korea IT Academy, and others

  • Universities and educational institutions – Information Security special lectures at Korea Information and Communications Polytechnic College, Chonnam National University, Woosuk University, Hoseo University, and more

  • Public institutions – Special lectures on personal information protection and information security for the Ministry of Culture, Sports and Tourism, the National Information Society Agency, the Navy, the National Election Commission, and others

  • Businesses and medical institutions – Special lectures on personal information protection and information security for POSCO A&C, Ilsan Paik Hospital, Hyundai Department Store, Hyundai HDS, and others

※ Conducted lectures on personal information protection and information security at approximately 30 organizations, including the institutions listed above, as well as public institutions, corporations, and medical institutions


[Educational Philosophy]

I believe that with Linux and information security, the process of building, configuring, and troubleshooting servers firsthand is more important than simply memorizing commands and concepts.

Errors and failures that occur during the learning process are not merely mistakes, but valuable opportunities to learn and grow. At times, you may go through countless trials and errors and what is commonly called 'trial and error,' but I believe that the insights gained by analyzing the causes and solving problems on your own are the most reliable form of learning.

Even content that initially seems difficult and incomprehensible becomes fully your own knowledge and skill if you don’t give up, but repeatedly practice and work through it.

Going beyond simply following along to develop the ability to think independently and solve problems—this is the direction of education I pursue.

I will provide practice-oriented lectures so that you can continue challenging yourselves without giving up, even through difficult parts of the course, and confidently apply what you have learned in real-world environments.


Thank you.

More

Curriculum

All

107 lectures ∙ (32hr 33min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

4 reviews

5.0

4 reviews

  • jyseo님의 프로필 이미지
    jyseo

    Reviews 75

    ∙

    Average Rating 5.0

    Edited

    5

    100% enrolled

    Before taking this course, I only knew how to simply change permissions using the chmod command. However, through this lecture, I was able to gain a deep understanding of the detailed internal processes and the permission systems involved when an executable binary file is loaded into memory as a process and accesses actual files. Beyond simple permission management, the course covered essential practical topics such as setting up Apache web servers and DB servers, efficient disk management, and firewall settings for security, making it the perfect lecture for grasping the overall context of Linux operations. It was a beneficial time that allowed me to build both a solid foundation and practical skills simultaneously. I am so satisfied with this lecture that I am truly looking forward to the next follow-up course!

    • linuxmasternet
      Instructor

      Thank you sincerely for your thoughtful review. Since permissions are directly linked to security, they are a very important topic. It is necessary to learn not just isolated commands, but the broader context and practical points as well. Based on my experience and know-how accumulated over nearly 30 years of using Linux, I have done my best to organize and share the core content that will definitely be helpful in the field. I feel a great sense of accomplishment knowing that you have mastered the essential practical content. Although the follow-up lectures will take a lot of time, I will prepare them step-by-step with an even stronger focus on practical application. You can look forward to it. I invested a lot of time preparing this lecture, but looking back, I see areas for improvement. I will continue to update and refine the content to make it more complete, addressing any parts that might be lacking from a student's perspective. Please look forward to the subsequent supplementary materials as well. Thank you. ^^

    • linuxmasternet
      Instructor

      Even though I created it myself, I highly recommend this course to those who are new to Linux or those who want to operate Linux stably. Through this course, I hope you will establish clear standards for permissions and security and operate Linux more safely and stably. Thank you. ^^

  • hangeulchoi0321님의 프로필 이미지
    hangeulchoi0321

    Reviews 3

    ∙

    Average Rating 5.0

    5

    31% enrolled

    • linuxmasternet
      Instructor

      Thank you so sincerely for the precious 5-star (★★★★★) rating. Even a short line of score carries your feeling of "satisfaction," which gives me great strength. Permissions and security are topics frequently encountered in practice, so the more you review them, the more you will feel their importance. I will ensure that the lecture materials (PDF/practice examples) are reflected based on the latest standards whenever they are updated. If you have any questions or difficulties while taking the course, please feel free to leave a question at any time. I will prepare the next lecture even more thoroughly to meet your expectations. Thank you.

  • alecia820930님의 프로필 이미지
    alecia820930

    Reviews 2

    ∙

    Average Rating 5.0

    5

    64% enrolled

    • linuxmasternet
      Instructor

      Thank you for the 5-star rating. ^^ Permissions in Linux are a fundamental topic, but they are also important because they remain closely connected to system administration and security as a whole. I hope this course helped you organize your understanding of permissions and their underlying principles. If you practice hands-on several times, you will be able to approach Linux servers with much more confidence later on. In addition, I’m preparing a course covering firewalls and packet filtering, which are key aspects of Linux security along with permissions. I’m aiming to launch it sometime in November. If you’re interested, you may enjoy studying it as your next learning course. Thank you sincerely for leaving such a great review. ^^

  • accssf5907님의 프로필 이미지
    accssf5907

    Reviews 23

    ∙

    Average Rating 4.9

    5

    31% enrolled

    • linuxmasternet
      Instructor

      Thank you so much for your kind review and valuable 5-star rating. Permissions in Linux are a fundamental concept essential to understanding system operations and security. I hope this course helped you understand the principles of permissions and how they work in practice. I will continue improving the course so that you can revisit it while practicing in the future. Thank you for taking the course and leaving such a great review. ^^

linuxmasternet's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

25% off for new members

$57.00

25%

$77.00