15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

permissions. Let’s take a short jaunt into Linux and macOS users, groups,

and permissions. We’ll look at the chmod and chown commands because

they are listed as objectives for the CompTIA A+ 1002 exam.

NOTE Understanding this section requires some understanding of the

Linux command line. You may need to refer to Chapter 15, “Working with

the Command-Line Interface,” to practice some of the commands shown

here.

Just as in Windows, every file and folder on a Linux or macOS system has

permissions. You can easily see this if you go to a Linux terminal and type

this command: ls -l. This shows a detailed list of all the files and folders in a

location. Chapter 15 discusses the ls command in a lot more detail, but this is

enough for our present discussion.

Let’s zero in on one line of this output:

First, ignore almost everything: The 1 is about links that programmers care

about; mikemeyers is the owner and mi6 is the group. The file size is 7624;

the date and time are next. The file name is honeypot.

Now note the string -rwxrwxrwx. Each of those letters represents a

permission for this file. Ignore the dash at the beginning. That is used to tell

us if this listing is a file, directory, or shortcut. What we have left are three

groups of rwx. The three groups, in order, stand for:

• Owner Permissions for the owner of this file or folder

• Group Permissions for members of the group for this file or folder

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!