{"id":225,"date":"2024-12-03T09:16:00","date_gmt":"2024-12-03T09:16:00","guid":{"rendered":"https:\/\/texarxs.com\/blog\/?p=225"},"modified":"2026-07-03T05:10:37","modified_gmt":"2026-07-03T05:10:37","slug":"macos-command-line-basics-part-5-managing-permissions","status":"publish","type":"post","link":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/","title":{"rendered":"macOS Command Line Basics &#8211; Part 5: Managing Permissions"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"598\" height=\"336\" src=\"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png\" alt=\"\" class=\"wp-image-226\" style=\"width:530px;height:auto\" srcset=\"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png 598w, https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2-300x169.png 300w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.linkedin.com\/company\/texarxs\/\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Permissions on your Mac determine who can read, write, or execute files and folders. As a beginner, understanding how these permissions work and how to manage them via the command line can help you secure your system, troubleshoot issues, and customize access for different users. In this guide, we\u2019ll walk you through the basics of file permissions, how to view and change them, and the commands you\u2019ll need to master.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What Are File Permissions on macOS?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Unix-based systems like macOS, every file and folder has a set of permissions that control who can do what with them. These permissions fall into three main categories:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Read (r)<\/strong>: Allows the user to view the contents of a file or list the contents of a directory.<\/li>\n\n\n\n<li><strong>Write (w)<\/strong>: Allows the user to modify the contents of a file or add\/remove files in a directory.<\/li>\n\n\n\n<li><strong>Execute (x)<\/strong>: Allows the user to run a file as a program or script, or enter a directory.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">These permissions are assigned to three groups of users:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Owner<\/strong>: The user who owns the file or directory.<\/li>\n\n\n\n<li><strong>Group<\/strong>: A group of users who share the file or directory access.<\/li>\n\n\n\n<li><strong>Others<\/strong>: All other users on the system<br><\/li>\n<\/ul>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>Viewing Permissions on macOS Using the Command Line<\/strong><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest way to view the permissions of a file or directory is by using the ls command with the -l flag:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">ls -l \/path\/to\/file_or_directory<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><br>This will display detailed information about the file, including its permissions:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">-rwxr-xr-x&nbsp; 1 owner&nbsp; group&nbsp; 12345 Dec&nbsp; 2 10:30 filename<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Here\u2019s what each part means:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>-rwxr-xr-x: <\/strong>This shows the permissions for the file. The first character (- or d) shows whether it\u2019s a regular file (-) or a directory (d).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The next three characters (rwx) are the <strong>owner\u2019s<\/strong> permissions: r (read), w (write), x (execute).<\/li>\n\n\n\n<li>Following that, (r-x) are the <strong>group\u2019s<\/strong> permissions.<\/li>\n\n\n\n<li>Finally, the last three characters (r-x) are for <strong>others<\/strong> (everyone else).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>1<\/strong>. <strong>The number of hard links to the file.<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>owner<\/strong>: The user who owns the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>group<\/strong>: The group assigned to the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>12345<\/strong>: The file size in bytes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Dec 2 10:30:<\/strong> The date and time the file was last modified.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>filename<\/strong>: The name of the file or directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>2. Changing Permissions with the chmod Command<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The chmod (change mode) command allows you to modify the permissions of a file or folder. There are two main ways to use chmod:<strong> symbolic notation<\/strong> and <strong>numeric notation.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Symbolic Notation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This notation uses letters to represent the permissions and users:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User types:<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 u = owner (user)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 g = group<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 o = others<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 a = all users (owner, group, others)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 Permissions:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 r = read<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 w = write<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 x = execute<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 Operators:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 + adds permission.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 &#8211; removes permission.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 = sets the exact permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For instance, to give the owner execute permission on a file:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod u+x \/path\/to\/file<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><br>It adds the execute permission (x) for the owner (u).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, To remove write permission from the group:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod g-w \/path\/to\/file<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Numeric Notation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Permissions can also be represented as a 3-digit octal number. Each digit represents the permissions for owner, group, and others:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 <strong>4 <\/strong>= read (r)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 <strong>2<\/strong> = write (w)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 <strong>1 <\/strong>= execute (x)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The digits are added together to create the correct permission set for each user type.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 7 = read, write, and execute (4 + 2 + 1)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 6 = read and write (4 + 2)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 5 = read and execute (4 + 1)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example: To set full permissions (read, write, and execute) for the owner, and read and execute permissions for the group and others:<br><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod 755 \/path\/to\/file<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">The command sets:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 <strong>7<\/strong> for the owner (read, write, execute)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 <strong>5<\/strong> for the group (read, execute)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u2022 <strong>5<\/strong> for others (read, execute)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>3. Changing Ownership with the chown Command<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The chown command allows you to change the <strong>owner<\/strong> and <strong>group<\/strong> of a file or directory.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">sudo chown owner:group \/path\/to\/file_or_directory<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Example: To change the owner to john and the group to staff:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">sudo chown john:staff \/path\/to\/file_or_directory<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u00a0\u2022 To change only the owner run this command:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">sudo chown john \/path\/to\/file_or_directory<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u00a0\u2022 If you only need to update the group instead, use:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">sudo chown :staff \/path\/to\/file_or_directory<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>4. Changing Permissions Recursively<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can change the permissions of all files and subdirectories inside a directory using the -R (recursive) flag:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod -R 755 \/path\/to\/directory<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Running this sets the permissions for the directory and everything inside it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Similarly, you can change ownership recursively with:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">sudo chown -R owner:group \/path\/to\/directory<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>5. Special Permissions: Setuid, Setgid, and Sticky Bit<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">macOS (like other Unix systems) also supports special permissions that modify the way certain files or directories behave. These permissions are more advanced, but understanding them can help you manage system resources securely.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Setuid (Set User ID):<\/strong> When set on an executable file, the program runs with the privileges of the file\u2019s owner, not the user running the program. This is typically used for system-level programs that need elevated privileges.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod 4755 \/path\/to\/executable<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Setgid (Set Group ID):<\/strong> When set on an executable file, the program runs with the privileges of the file\u2019s group. If applied to a directory, files created within that directory inherit the directory\u2019s group.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod 2755 \/path\/to\/executable_or_directory<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong>Sticky Bit:<\/strong> When set on a directory, only the file\u2019s owner can delete or rename files within that directory. This is commonly used for shared directories, like \/tmp.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod 1777 \/path\/to\/directory<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>6. Resetting Permissions to Default<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you accidentally change permissions or ownership, you can reset them. For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reset file permissions to rw-r&#8211;r&#8211; for owner, and r&#8211;r&#8211;r&#8211; for group and others:<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">chmod 644 \/path\/to\/file<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reset the ownership to the original user and group:<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">sudo chown username:groupname \/path\/to\/file<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>7. Advanced Tips for Managing Permissions<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>umask: This command sets default file permissions for newly created files. A umask value of 022 will set default permissions of 755 for directories and 644 for files.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">umask 022<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>find with chmod: If you need to change permissions for files of a specific type, use find with chmod:<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">find \/path\/to\/directory -type f -exec chmod 644 {} \\;<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><br><strong>Conclusion: Mastering macOS Permissions<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Managing permissions on macOS using the command line gives you fine-grained control over file access and system security. By mastering commands like chmod, chown, and ls, you can ensure that your files and folders are properly protected.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For beginners, it\u2019s important to practice and experiment with these commands in a controlled environment to understand how they work. Over time, you\u2019ll become more comfortable using the command line for efficient system management.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow <a href=\"https:\/\/www.linkedin.com\/company\/texarxs\/\"><strong>TexArxs<\/strong><\/a> more insights on macOS management, security, and more!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Permissions on your Mac determine who can read, write, or execute files and folders. As a beginner, understanding how these permissions work and how to manage them via\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[1],"tags":[9,18,155,71,11,4,12,156,157],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-apple","tag-apple-it","tag-apple-security","tag-cli-commands","tag-mac-enpoint-security","tag-macadmins","tag-macos","tag-macos-management","tag-macos-terminal","tag-terminal-commands"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>macOS Command Line Basics - Part 5: Managing Permissions - TexArxs Blog<\/title>\n<meta name=\"description\" content=\"Learn how to manage file permissions in macOS terminal using chmod and chown commands \u2014 a practical guide for developers and IT admins.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"macOS Command Line Basics - Part 5: Managing Permissions - TexArxs Blog\" \/>\n<meta property=\"og:description\" content=\"Learn how to manage file permissions in macOS terminal using chmod and chown commands \u2014 a practical guide for developers and IT admins.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/\" \/>\n<meta property=\"og:site_name\" content=\"TexArxs Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-03T09:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-03T05:10:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"598\" \/>\n\t<meta property=\"og:image:height\" content=\"336\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"TexArxs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TexArxs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/\"},\"author\":{\"name\":\"TexArxs\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#\\\/schema\\\/person\\\/b577b4a39267cc9fbc17b1d921a162b0\"},\"headline\":\"macOS Command Line Basics &#8211; Part 5: Managing Permissions\",\"datePublished\":\"2024-12-03T09:16:00+00:00\",\"dateModified\":\"2026-07-03T05:10:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/\"},\"wordCount\":1107,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/image-2.png\",\"keywords\":[\"Apple IT\",\"Apple Security\",\"CLI Commands\",\"Mac Enpoint Security\",\"MacAdmins\",\"macOS\",\"macOS Management\",\"macOS Terminal\",\"Terminal Commands\"],\"articleSection\":[\"Apple\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/\",\"url\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/\",\"name\":\"macOS Command Line Basics - Part 5: Managing Permissions - TexArxs Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/image-2.png\",\"datePublished\":\"2024-12-03T09:16:00+00:00\",\"dateModified\":\"2026-07-03T05:10:37+00:00\",\"description\":\"Learn how to manage file permissions in macOS terminal using chmod and chown commands \u2014 a practical guide for developers and IT admins.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/image-2.png\",\"contentUrl\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/image-2.png\",\"width\":598,\"height\":336},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/macos-command-line-basics-part-5-managing-permissions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"macOS Command Line Basics &#8211; Part 5: Managing Permissions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/\",\"name\":\"TexArxs Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#organization\",\"name\":\"TexArxs\",\"url\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/TexArxs-01.png\",\"contentUrl\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/TexArxs-01.png\",\"width\":2084,\"height\":1251,\"caption\":\"TexArxs\"},\"image\":{\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/texarxs\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/#\\\/schema\\\/person\\\/b577b4a39267cc9fbc17b1d921a162b0\",\"name\":\"TexArxs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7250d49763068777a6a9d21e072aedd7e2310eed60ac7048e3cdd4d84c02ca53?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7250d49763068777a6a9d21e072aedd7e2310eed60ac7048e3cdd4d84c02ca53?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7250d49763068777a6a9d21e072aedd7e2310eed60ac7048e3cdd4d84c02ca53?s=96&d=mm&r=g\",\"caption\":\"TexArxs\"},\"url\":\"https:\\\/\\\/texarxs.com\\\/blog\\\/author\\\/priyatexarxs-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"macOS Command Line Basics - Part 5: Managing Permissions - TexArxs Blog","description":"Learn how to manage file permissions in macOS terminal using chmod and chown commands \u2014 a practical guide for developers and IT admins.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/","og_locale":"en_US","og_type":"article","og_title":"macOS Command Line Basics - Part 5: Managing Permissions - TexArxs Blog","og_description":"Learn how to manage file permissions in macOS terminal using chmod and chown commands \u2014 a practical guide for developers and IT admins.","og_url":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/","og_site_name":"TexArxs Blog","article_published_time":"2024-12-03T09:16:00+00:00","article_modified_time":"2026-07-03T05:10:37+00:00","og_image":[{"width":598,"height":336,"url":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png","type":"image\/png"}],"author":"TexArxs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"TexArxs","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#article","isPartOf":{"@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/"},"author":{"name":"TexArxs","@id":"https:\/\/texarxs.com\/blog\/#\/schema\/person\/b577b4a39267cc9fbc17b1d921a162b0"},"headline":"macOS Command Line Basics &#8211; Part 5: Managing Permissions","datePublished":"2024-12-03T09:16:00+00:00","dateModified":"2026-07-03T05:10:37+00:00","mainEntityOfPage":{"@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/"},"wordCount":1107,"commentCount":0,"publisher":{"@id":"https:\/\/texarxs.com\/blog\/#organization"},"image":{"@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#primaryimage"},"thumbnailUrl":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png","keywords":["Apple IT","Apple Security","CLI Commands","Mac Enpoint Security","MacAdmins","macOS","macOS Management","macOS Terminal","Terminal Commands"],"articleSection":["Apple"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/","url":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/","name":"macOS Command Line Basics - Part 5: Managing Permissions - TexArxs Blog","isPartOf":{"@id":"https:\/\/texarxs.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#primaryimage"},"image":{"@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#primaryimage"},"thumbnailUrl":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png","datePublished":"2024-12-03T09:16:00+00:00","dateModified":"2026-07-03T05:10:37+00:00","description":"Learn how to manage file permissions in macOS terminal using chmod and chown commands \u2014 a practical guide for developers and IT admins.","breadcrumb":{"@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#primaryimage","url":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png","contentUrl":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/07\/image-2.png","width":598,"height":336},{"@type":"BreadcrumbList","@id":"https:\/\/texarxs.com\/blog\/macos-command-line-basics-part-5-managing-permissions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/texarxs.com\/blog\/"},{"@type":"ListItem","position":2,"name":"macOS Command Line Basics &#8211; Part 5: Managing Permissions"}]},{"@type":"WebSite","@id":"https:\/\/texarxs.com\/blog\/#website","url":"https:\/\/texarxs.com\/blog\/","name":"TexArxs Blog","description":"","publisher":{"@id":"https:\/\/texarxs.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/texarxs.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/texarxs.com\/blog\/#organization","name":"TexArxs","url":"https:\/\/texarxs.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texarxs.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/06\/TexArxs-01.png","contentUrl":"https:\/\/texarxs.com\/blog\/wp-content\/uploads\/2026\/06\/TexArxs-01.png","width":2084,"height":1251,"caption":"TexArxs"},"image":{"@id":"https:\/\/texarxs.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/texarxs"]},{"@type":"Person","@id":"https:\/\/texarxs.com\/blog\/#\/schema\/person\/b577b4a39267cc9fbc17b1d921a162b0","name":"TexArxs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7250d49763068777a6a9d21e072aedd7e2310eed60ac7048e3cdd4d84c02ca53?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7250d49763068777a6a9d21e072aedd7e2310eed60ac7048e3cdd4d84c02ca53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7250d49763068777a6a9d21e072aedd7e2310eed60ac7048e3cdd4d84c02ca53?s=96&d=mm&r=g","caption":"TexArxs"},"url":"https:\/\/texarxs.com\/blog\/author\/priyatexarxs-com\/"}]}},"_links":{"self":[{"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":1,"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/texarxs.com\/blog\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}