Will513r / command-line-VWC

1 stars 0 forks source link

Understand and modify file permissions with `chmod` #10

Open Will513r opened 1 year ago

Will513r commented 1 year ago

Ticket: Understand and Modify File Permissions with chmod


Summary

Learn how to understand and modify file permissions using the chmod command in a Unix-like operating system.


Description


Learning Tasks

  1. File Permission Basics:

    • Learn about the three basic types of permissions: Read (r), Write (w), and Execute (x).
  2. Syntax and Basic Usage of chmod:

    • Understand the syntax and how to use chmod to change permissions on a file or directory.
  3. Specify Permissions:

    • Explore how to specify permissions using both numeric and symbolic modes.
  4. Best Practices and Warnings:

    • Familiarize yourself with the responsible use of chmod, including potential pitfalls and how to avoid them.
  5. Hands-on Practice:

    • Exercise 1: Create a text file and change its permissions to read-only.
    • Exercise 2: Create a script file and make it executable.
    • Exercise 3: Use symbolic mode to add write permission to a group for a specific file.
    • Exercise 4: Revert a file to its default permissions.
  6. Troubleshooting:

    • Discover common issues users may face while working with chmod and learn solutions for them.

Learning Goals


Priority

Will513r commented 1 year ago

Read is a permission for just reading the file. Write means you can create and modify the file and execute means you can run the file.

Will513r commented 1 year ago

using numeric mode you can assign read and write to a numerical value and symbolic mode allows you to uae letters. chmod is a way to protect information from being overwritten or seen by people it doesn't need to be seen by.