{"id":3223,"date":"2024-06-10T10:00:13","date_gmt":"2024-06-10T10:00:13","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=3223"},"modified":"2024-07-02T08:55:31","modified_gmt":"2024-07-02T08:55:31","slug":"how-to-fix-error-moving-file-permission-denied-in-ubuntu","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/","title":{"rendered":"How to Fix Error Moving File Permission Denied in Ubuntu?"},"content":{"rendered":"<p>Are you trying to move files in your Ubuntu machine and are met with the Permission denied error? If that is the case, then this guide is made for you.<\/p>\n<p>File management is an important task for a System Administrator and even for an average user. However, when working with files in Ubuntu, you need to consider many permissions and ownership rights. Each user has certain rights that are defined within Ubuntu.<\/p>\n<p>The \u201cpermission denied\u201d error while trying to move files within Ubuntu occurs because the user trying to perform the move operation doesn\u2019t have ownership over the file being moved. This guide will explain the reasons for encountering the error and provide its solution.<\/p>\n\n<p>Let\u2019s get started!<\/p>\n<h2 id=\"how-to-fix-error-moving-file-permission-denied-in-ubuntu\">How to Fix Error Moving File Permission Denied in Ubuntu?<\/h2>\n<p>To fix the error \u201c<strong>Permission Denied while moving files<\/strong>,\u201d you need to execute the command as the root user, which can be done by either using the keyword \u201csudo\u201d before the command or by changing the mod of the user that is executing the command. Otherwise, you can change the ownership of the file.<\/p>\n<p>However, in rare cases, you can encounter the same error even when executing the move command as a root user, which happens when you over-use the \u201c<strong>sudo<\/strong>\u201d command to do everything, as this changes the ownership of the files to \u201c<strong>root<\/strong>.\u201d<\/p>\n<p>Let\u2019s look at the different solutions for this error in detail!<\/p>\n<h3 id=\"use-the-sudo-command\">Use the \u201csudo\u201d Command<\/h3>\n<p>The best solution to move files within the Ubuntu Filesystem without encountering any \u201cpermission denied\u201d error is to use the \u201csudo\u201d keyword at the start of the command. With this method, the commands are executed as a root user, which has all the permissions within the Ubuntu Filesystem, and that\u2019s why no permission error occurs.<\/p>\n<p>Let\u2019s demonstrate this through an example. Suppose you have a file that you want to move that is placed on the Desktop, and you want to move it to a folder named \u201cLinuxJava,\u201d as you can see in the following screenshot.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/1-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3225\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/1-8.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"693\" height=\"336\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/1-8.png 693w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/1-8-300x145.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/a><\/p>\n<p>To move this file \u201c123.rar\u201d into the folder, normally, you would use the following command.<\/p>\n<pre>mv 123 \/LinuxJava<\/pre>\n<p>However, this command returns the following error statement on the terminal window.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/2-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3226\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/2-9.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"971\" height=\"182\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/2-9.png 971w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/2-9-300x56.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/2-9-768x144.png 768w\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" \/><\/a><\/p>\n<p>Retry the same move command, but this time around, the command starts with a \u201csudo\u201d keyword. Therefore, the command becomes.<\/p>\n<pre>sudo mv 123 \/LinuxJava<\/pre>\n<p>However, remember that you will require the root user&#8217;s password to execute this command.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/3-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3227\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/3-8.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"974\" height=\"193\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/3-8.png 974w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/3-8-300x59.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/3-8-768x152.png 768w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/a><\/p>\n<p>After typing the password to the root user, you can execute the \u201c<strong>mv<\/strong>\u201d command without encountering the \u201c<strong>permission denied<\/strong>\u201d error. The next step is to head inside the folder and verify that the file has been moved.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/4-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3228\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/4-8.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"885\" height=\"195\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/4-8.png 885w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/4-8-300x66.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/4-8-768x169.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/a><\/p>\n<h3 id=\"use-the-superuser-shell\">Use the Superuser Shell<\/h3>\n<p>Another way to achieve the same results as the above method without typing the \u201csudo\u201d before every command is to use the super user or root shell. This allows a user to access the root command shell and execute commands with the highest permissions.<\/p>\n<p>To do this, you need to open a terminal on your Ubuntu machine (CTRL + ALT + T) and then type the following command to convert it into a superuser shell.<\/p>\n<pre>sudo su<\/pre>\n<p>When you type this command and execute it, you will be prompted to provide the password of the root user of the Ubuntu machine.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/5-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3229\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/5-8.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"969\" height=\"135\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/5-8.png 969w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/5-8-300x42.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/5-8-768x107.png 768w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/><\/a><\/p>\n<p>Therefore, type in the password for the root user and press the \u201c<strong>Enter<\/strong>\u201d key. Once you have done that, you will observe that the username and the hostname within the terminal have changed to root.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/6-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3230\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/6-8.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"970\" height=\"151\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/6-8.png 970w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/6-8-300x47.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/6-8-768x120.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<p>Let\u2019s try moving the file named \u201c<strong>76.rar<\/strong>\u201d from the desktop to the folder \u201c<strong>LinuxJava<\/strong>\u201d also on the desktop.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/7-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3231\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/7-7.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"508\" height=\"290\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/7-7.png 508w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/7-7-300x171.png 300w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/a><\/p>\n<p>To do this, you will have to type the following commands in the terminal<\/p>\n<pre>cd Desktop\r\nmv 76.rar LinuxJava\/<\/pre>\n<p>The first command changes the pwd to \u201cDesktop,\u201d and the second is the move (mv) command. Once you execute the following commands, your file will be copied into the LinuxJava folder without errors.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/8-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3232\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/8-7.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"888\" height=\"201\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/8-7.png 888w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/8-7-300x68.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/8-7-768x174.png 768w\" sizes=\"auto, (max-width: 888px) 100vw, 888px\" \/><\/a><\/p>\n<h3 id=\"use-the-f-flag-in-the-mv-command\">Use the \u201c-f\u201d Flag in the \u201cmv\u201d Command<\/h3>\n<p>If you are running the mv command and are still experiencing permission denied error or any other error like \u201coverwriting,\u201d you can include the \u201c-f\u201d option within the move (mv) command. The \u201c-f\u201d stands for \u201cforce,\u201d and it will force the file into the destination folder even if there is an overwriting issue.<\/p>\n<p>Therefore, instead of using the move command, use the normal syntax for moving a file from one location to another, like the following.<\/p>\n<pre>sudo mv &lt;source_path&gt; &lt;destination_path&gt;<\/pre>\n<p>Use the following command with the addition of the \u201cforce\u201d option.<\/p>\n<pre>sudo mv -f &lt;source_path&gt; &lt;destination_path&gt;<\/pre>\n<p>However, be careful when using this method because this method will overwrite the existing files with the same names in the destination without any confirmation or prompts. If you want to avoid accidentally overwriting important files or documents, you can add the \u201c-i\u201d flag, which will prompt you on the terminal in case of overwriting.<\/p>\n<p>Therefore, the command to show the prompts with the force option becomes.<\/p>\n<pre>sudo mv -f -i &lt;source_path&gt; &lt;destination_path&gt;<\/pre>\n<h3 id=\"change-file-permissions-correctly\">Change File Permissions Correctly<\/h3>\n<p>If you do not want to use the \u201csudo\u201d command for everything, you do not want users to have sudo access to everything. Then, you can simply change the permission of the file correctly, which can be done by using the chmod command to change the permissions of the file\/folder that needs to be moved.<\/p>\n<p>To demonstrate this method, let\u2019s take a file named \u201cmyData.zip\u201d placed on the desktop, which needs to be moved to the folder \u201cLinuxJava\u201d on the desktop. The first thing to do is find the file permissions by running the following command on the terminal with \u201cDesktop as its present working directory.<\/p>\n<pre>ls -al<\/pre>\n<p>Running this command will list all the directories and files available on the present working directories.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/9-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3233\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/9-6.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"974\" height=\"272\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/9-6.png 974w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/9-6-300x84.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/9-6-768x214.png 768w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/a><\/p>\n<p>As you can see in the screenshot above, the user \u201cLinuxuser\u201d only has read access permissions to the file \u201cmyData.zip,\u201d which causes the permission denied error. To fix this issue, let\u2019s change the permissions to \u201c755\u201d using the chmod command.<\/p>\n<pre>chmod\r\nchmod 755 myData.zip<\/pre>\n<p>Once that is done, you can re-run the \u201cls -al\u201d command to view the access permissions of the files again and verify that changes are made through the chmod command.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/10-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3234\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/10-3.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"948\" height=\"281\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/10-3.png 948w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/10-3-300x89.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/10-3-768x228.png 768w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/a><\/p>\n<p>Using the following command, let\u2019s try moving this file into the \u201cLinuxJava\u201d folder without the sudo keyword.<\/p>\n<pre>mv myData.zip LinuxJava\/<\/pre>\n<p>After successfully executing the command, head inside the folder and verify that the files have been moved.<\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/11-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3235\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/11-3.png\" alt=\"How to Fix Error Moving File Permission Denied in Ubuntu?\" width=\"885\" height=\"200\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/11-3.png 885w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/11-3-300x68.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/11-3-768x174.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/a><\/p>\n<h3 id=\"change-default-ownership\">Change Default Ownership<\/h3>\n<p>If you have often used the \u201csudo\u201d keyword to move and copy files. A rare bug can cause the ownership of the files to change by itself. This causes the error of permission being denied while moving files, even when using the \u201csudo\u201d keyword.<\/p>\n<p>When this happens, you must change the default ownership of the directories you work with. For example, if you work within the home directories, you can simply run the following command in the terminal.<\/p>\n<p>sudo chown -R $USER:$USER $HOME<\/p>\n<p>After this, re-run the move operation, which will work without encountering the permission denied error.<\/p>\n<div class=\"cl-preview-section\">\n<h2 id=\"affordable-vps-hosting-with-dracula-servers\"><span style=\"color: #ff2600;\">Affordable VPS Hosting With Dracula Servers<\/span><\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Looking for reliable and budget-friendly Virtual Private Server (VPS) hosting? Look no further than\u00a0<a href=\"https:\/\/draculaservers.com\/\">Dracula Servers<\/a>. Dracula Servers offers a range of VPS hosting plans tailored to meet diverse needs. With competitive pricing, robust performance, and a user-friendly interface, it\u2019s an excellent choice for individuals and businesses alike.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Explore the\u00a0<a href=\"https:\/\/draculaservers.com\/\">Dracula Servers website<\/a> to discover hosting solutions that align with your requirements and take your online presence to new heights with their affordable and efficient VPS hosting services.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p><a href=\"https:\/\/draculaservers.com\/\"><strong>Visit Dracula Servers<\/strong><\/a>\u00a0and experience reliable VPS hosting without breaking the bank.<\/p>\n<\/div>\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<p>The error \u201cpermission denied\u201d occurs while trying to move files\/folders from one location to another within the Ubuntu Files system because the user trying to operate does not have the rights to move these files.<\/p>\n<p>To tackle this issue, the easiest method is to include the keyword \u201csudo\u201d at the start of the move command. Through this method, the move command will be executed with superuser privileges and will not encounter the \u201cpermission denied\u201d error. However, to use the \u201csudo\u201d keyword, you will be prompted to provide the root user\u2019s password.<\/p>\n<p>Alternatively, if you do not want to include the sudo keyword at the start of every command you execute, you can head to a super user shell. Within the superuser shell, each command will be executed with superuser privileges.<\/p>\n<p>Otherwise, you can use the \u201c-f\u201d option in the move command if the error is due to an overwrite issue or change the file permissions.<\/p>\n<p>Lastly, if the error is due to the overuse of the sudo keyword that causes the owner to be changed for every file, then simply change the ownership of the directory using the \u201cchown\u201d common.<\/p>\n<p>Check out More Linux Tutorials <a href=\"https:\/\/draculaservers.com\/tutorials\/\" target=\"_blank\" rel=\"noopener\">Here!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you trying to move files in your Ubuntu machine and are met with the Permission denied error? If that is the case, then this guide is made for you. File management is an important task for a System Administrator and even for an average user. However, when working with files in Ubuntu, you need [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3224,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-3223","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"blocksy_meta":[],"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png",1280,720,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10-300x169.png",300,169,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10-768x432.png",768,432,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10-1024x576.png",1024,576,true],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png",1280,720,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png",1280,720,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>Are you trying to move files in your Ubuntu machine and are met with the Permission denied error? If that is the case, then this guide is made for you. File management is an important task for a System Administrator and even for an average user. However, when working with files in Ubuntu, you need to consider many permissions and ownership rights. Each user has certain rights that are defined within Ubuntu. The \u201cpermission denied\u201d error while trying to move files within Ubuntu occurs because the user trying to perform the move operation doesn\u2019t have ownership over the file being&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/ubuntu\/\" rel=\"category tag\">Ubuntu<\/a>","author_info_v2":{"name":"Abdul Mannan","url":"https:\/\/draculaservers.com\/tutorials\/author\/abdul-mannan-tbgmail-com\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Fix Error Moving File Permission Denied in Ubuntu? - Dracula Servers Tutorials<\/title>\n<meta name=\"description\" content=\"To avoid getting the permission denied error, use the sudo keyword or change the terminal to the root one. Read other solutions here!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix Error Moving File Permission Denied in Ubuntu? - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"To avoid getting the permission denied error, use the sudo keyword or change the terminal to the root one. Read other solutions here!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-10T10:00:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-02T08:55:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abdul Mannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abdul Mannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/\"},\"author\":{\"name\":\"Abdul Mannan\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\"},\"headline\":\"How to Fix Error Moving File Permission Denied in Ubuntu?\",\"datePublished\":\"2024-06-10T10:00:13+00:00\",\"dateModified\":\"2024-07-02T08:55:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/\"},\"wordCount\":1453,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Dracula-Servers-Thumbnail-10.png\",\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/\",\"name\":\"How to Fix Error Moving File Permission Denied in Ubuntu? - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Dracula-Servers-Thumbnail-10.png\",\"datePublished\":\"2024-06-10T10:00:13+00:00\",\"dateModified\":\"2024-07-02T08:55:31+00:00\",\"description\":\"To avoid getting the permission denied error, use the sudo keyword or change the terminal to the root one. Read other solutions here!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Dracula-Servers-Thumbnail-10.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Dracula-Servers-Thumbnail-10.png\",\"width\":1280,\"height\":720,\"caption\":\"How to Fix Error Moving File Permission Denied in Ubuntu?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix Error Moving File Permission Denied in Ubuntu?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\",\"name\":\"Abdul Mannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"caption\":\"Abdul Mannan\"},\"description\":\"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Fix Error Moving File Permission Denied in Ubuntu? - Dracula Servers Tutorials","description":"To avoid getting the permission denied error, use the sudo keyword or change the terminal to the root one. Read other solutions here!","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:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix Error Moving File Permission Denied in Ubuntu? - Dracula Servers Tutorials","og_description":"To avoid getting the permission denied error, use the sudo keyword or change the terminal to the root one. Read other solutions here!","og_url":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2024-06-10T10:00:13+00:00","article_modified_time":"2024-07-02T08:55:31+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png","type":"image\/png"}],"author":"Abdul Mannan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abdul Mannan","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/"},"author":{"name":"Abdul Mannan","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6"},"headline":"How to Fix Error Moving File Permission Denied in Ubuntu?","datePublished":"2024-06-10T10:00:13+00:00","dateModified":"2024-07-02T08:55:31+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/"},"wordCount":1453,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png","articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/","url":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/","name":"How to Fix Error Moving File Permission Denied in Ubuntu? - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png","datePublished":"2024-06-10T10:00:13+00:00","dateModified":"2024-07-02T08:55:31+00:00","description":"To avoid getting the permission denied error, use the sudo keyword or change the terminal to the root one. Read other solutions here!","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/07\/Dracula-Servers-Thumbnail-10.png","width":1280,"height":720,"caption":"How to Fix Error Moving File Permission Denied in Ubuntu?"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/how-to-fix-error-moving-file-permission-denied-in-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Fix Error Moving File Permission Denied in Ubuntu?"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6","name":"Abdul Mannan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","caption":"Abdul Mannan"},"description":"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot."}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=3223"}],"version-history":[{"count":1,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3223\/revisions"}],"predecessor-version":[{"id":3236,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3223\/revisions\/3236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/3224"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=3223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=3223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=3223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}