Become The Solution Chicago Logo


Change Folder Permissions Command Line Terminal Mac X

Change Folder Permissions Command Line Terminal Mac X
Let’s review the types of permissions you can choose from in Mac X and Unix

 

Permissions

None

Execute

Write

Write and execute

Read

Read and execute

Read and write

Read, write and execute

Octal

0

1

2

3

4

5

6

7

Symbolic

---

--x

-w-

-wx

r--

r-x

rw-

rwx


In Mac X Terminal, you will use octal notation to set permissions as needed.

It is important to note that Mac X 10.11 by default sets permissions to limit the logged in user to access to file and system directories. If something requires you to specify octal notation on a file folder, you do so using Mac X Terminal. Let’s get started.






1.     Open Mac X Terminal

2.     Let’s get into the directory of files we want to change permissions to. In this example, we change directory to /opt/X11

3.     Type cd into Terminal and drag the folder or file(s) you want to change permissions on by dragging it into Terminal window. This is an easy way to the path to copy into Terminal without having to type it.

Change Directory Terminal Mac

4.     Now that we are in the folder we want, type –ls –l to reveal all sub files and folders and their permissions.

CHMOD Mac Terminal LS Command

5.     To change permissions on any folder or file type: chmod 01234567 and path file folder.
 
6.     Example: chmod 755 /bin which gives bin folder Read/Write/Excute or rwxr-xr-x

CHMOD 755 Mac Terminal
* Please use the comment form below to let us know if you experience issues, have questions, or can provide solution. We want and encourage feedback. *



Rate this blog entry:
2

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Guest
Friday, 20 October 2017

Subscribe to Become The Solution!




Search Become The Solution:

Follow Us Online!
Become The Solution Facebook PageBecome The Solution Twitter Solution ChicagoBecome The Solution Google PlusBecome The Solution InstagramBecome The Solution LinkedInBecome The Solution YouTube

Subscribe to Become The Solution!