{"id":2704,"date":"2013-05-10T19:52:24","date_gmt":"2013-05-10T19:52:24","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/05\/10\/uid-smaller-than-min-uid\/"},"modified":"2021-08-16T23:13:25","modified_gmt":"2021-08-17T03:13:25","slug":"uid-smaller-than-min-uid","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/","title":{"rendered":"SoftException UID is smaller than min_uid"},"content":{"rendered":"<p>When working with <a href=\"\/support\/server\/ssh\/what-is-shell-access\/\">SSH (shell)<\/a> there are various things you can do, among the simplest is creating and editing files that are in use on your hosting account. There can be times when you run across issues in the WHM or cPanel GUI after working within the shell. In this article, you will learn about the <strong>SoftException UID is smaller than min_uid<\/strong> error.<\/p>\n<h2>What is the error?<\/h2>\n<p>This particular error occurs more often than others when you are trying to edit a file in the GUI. The error you receive when attempting to save the file is similar to the one below:<\/p>\n<div class=\"cli\">SoftException in Application.cpp:357: UID of script &#8220;\/home\/mysite\/public_html\/index.php&#8221; is smaller than min_uid Premature end of script headers: index.php<\/div>\n<h2>What causes the error?<\/h2>\n<p>This error is caused by creating a file within the shell when logged in as the root user. If you check out the list of files, you will see that the index.php file is owned by root where the others are owned by the cpanel user.<\/p>\n<div class=\"cli\" style=\"font-family: courier\"> drwxr-x&#8212;  &nbsp;4 &nbsp;user123 nobody&nbsp; 4.0K May 10 14:19 .\/<br \/>\ndrwx&#8211;x&#8211;x  11 &nbsp;user123 user123 4.0K May 10 14:19 ..\/<br \/>\ndrwxr-xr-x  &nbsp;2 &nbsp;user123 user123 4.0K May 10 14:04 cgi-bin\/<br \/>\n-rw-r&#8211;r&#8211;  &nbsp;1 &nbsp;user123 user123    &nbsp;&nbsp;&nbsp;0 May 10 14:05 .htaccess<br \/>\n-rw-r&#8211;r&#8211;  &nbsp;1 &nbsp;root&nbsp;&nbsp;&nbsp;    root    &nbsp;&nbsp;&nbsp;3.0K Aug 27  &nbsp;2009 index.php<br \/>\n-rw-r&#8211;r&#8211;  &nbsp;1 &nbsp;user123 user123  &nbsp;39K May 10 14:05 php.ini<\/div>\n<h2>How can I fix it?<\/h2>\n<p>To fix the error, you need to change the ownership of the file to the cpanel username. You can do that by using the following command. Be sure to change the user123 to the proper cpanel username and index.php to the specific file you are going to change.<\/p>\n<div class=\"cli\">chown user123:user123 index.php<\/div>\n<p>After running the command, you can check the ownership of the files by running ls -lah command for the resident folder of the files. It should appear as below:<\/p>\n<div class=\"cli\" style=\"font-family: courier\"> drwxr-x&#8212; &nbsp;4 user123 nobody &nbsp;4.0K May 10 14:19 .\/<br \/>\ndrwx&#8211;x&#8211;x 11 user123 user123 4.0K May 10 14:19 ..\/<br \/>\ndrwxr-xr-x &nbsp;2 user123 user123 4.0K May 10 14:04 cgi-bin\/<br \/>\n-rw-r&#8211;r&#8211;  &nbsp;1 user123 user123    &nbsp;&nbsp;&nbsp;0 May 10 14:05 .htaccess<br \/>\n-rw-r&#8211;r&#8211; &nbsp;1 user123 user123 3.0K Aug 27 &nbsp;2009 index.php<br \/>\n-rw-r&#8211;r&#8211;  &nbsp;1 user123 user123  &nbsp;39K May 10 14:05 php.ini<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When working with SSH (shell) there are various things you can do, among the simplest is creating and editing files that are in use on your hosting account. There can be times when you run across issues in the WHM or cPanel GUI after working within the shell. In this article, you will learn about<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\"> Read More ><\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4307],"tags":[],"class_list":["post-2704","post","type-post","status-publish","format-standard","hentry","category-ssh"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SoftException UID is smaller than min_uid | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to fix the &quot;SoftException in Application.cpp:357: UID of script &quot;\/home\/mysite\/public_html\/index.php&quot; is smaller than min_uid&quot; error.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SoftException UID is smaller than min_uid | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to fix the &quot;SoftException in Application.cpp:357: UID of script &quot;\/home\/mysite\/public_html\/index.php&quot; is smaller than min_uid&quot; error.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-10T19:52:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:13:25+00:00\" \/>\n<meta name=\"author\" content=\"Scott Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Scott Mitchell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"SoftException UID is smaller than min_uid\",\"datePublished\":\"2013-05-10T19:52:24+00:00\",\"dateModified\":\"2021-08-17T03:13:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\"},\"wordCount\":378,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"SSH and Root Access\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\",\"name\":\"SoftException UID is smaller than min_uid | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-05-10T19:52:24+00:00\",\"dateModified\":\"2021-08-17T03:13:25+00:00\",\"description\":\"Learn how to fix the \\\"SoftException in Application.cpp:357: UID of script \\\"\/home\/mysite\/public_html\/index.php\\\" is smaller than min_uid\\\" error.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SoftException UID is smaller than min_uid\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\",\"name\":\"Scott Mitchell\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SoftException UID is smaller than min_uid | InMotion Hosting","description":"Learn how to fix the \"SoftException in Application.cpp:357: UID of script \"\/home\/mysite\/public_html\/index.php\" is smaller than min_uid\" error.","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:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/","og_locale":"en_US","og_type":"article","og_title":"SoftException UID is smaller than min_uid | InMotion Hosting","og_description":"Learn how to fix the \"SoftException in Application.cpp:357: UID of script \"\/home\/mysite\/public_html\/index.php\" is smaller than min_uid\" error.","og_url":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-05-10T19:52:24+00:00","article_modified_time":"2021-08-17T03:13:25+00:00","author":"Scott Mitchell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Scott Mitchell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"SoftException UID is smaller than min_uid","datePublished":"2013-05-10T19:52:24+00:00","dateModified":"2021-08-17T03:13:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/"},"wordCount":378,"commentCount":11,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["SSH and Root Access"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/","url":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/","name":"SoftException UID is smaller than min_uid | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-05-10T19:52:24+00:00","dateModified":"2021-08-17T03:13:25+00:00","description":"Learn how to fix the \"SoftException in Application.cpp:357: UID of script \"\/home\/mysite\/public_html\/index.php\" is smaller than min_uid\" error.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/server\/ssh\/uid-smaller-than-min-uid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"SoftException UID is smaller than min_uid"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed","name":"Scott Mitchell","url":"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=2704"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2704\/revisions"}],"predecessor-version":[{"id":84603,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2704\/revisions\/84603"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=2704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=2704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=2704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}