15.01.2024 Views

CompTIA A+ Certification All-in-One Exam Guide

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• Everyone Permissions for anyone for this file or folder

The letters r, w, and x represent the following permissions:

• r Read the contents of a file

• w Write or modify a file or folder

• x Execute a file or list the folder contents

Figure 13-24 shows the relationships.

Figure 13-24 Linux file permissions

Let’s look at another example:

• This file is called launch codes. The owner of this file is me. This file

is in the users group.

• The owner, mikemeyers, has read and write privileges (rw-).

• The group, users, has read and write privileges (rw-).

• No one has execute permissions (x) because this is just a text file, not a

script or program.

• Everyone can read the launch codes (r--). We should probably fix that.

chown Command

The chown command enables you to change the owner and the group with

which a file or folder is associated. The chown command uses the following

syntax:

chown <new owner> filename

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

Saved successfully!

Ooh no, something went wrong!