{"id":159,"date":"2012-02-04T21:11:32","date_gmt":"2012-02-04T15:11:32","guid":{"rendered":"http:\/\/ujjalruet.wordpress.com\/?p=159"},"modified":"2015-02-14T10:42:44","modified_gmt":"2015-02-14T10:42:44","slug":"changing-ownership-of-files-in-linux","status":"publish","type":"post","link":"https:\/\/blog.ujjal.net\/?p=159","title":{"rendered":"Changing ownership\/Permission of Files\/Folders  in Linux"},"content":{"rendered":"<p>A common problem in using Linux is restriction. Some operations are restricted for users by root.But if it is needed to do that operation like editing what to do? Today I have faced same kind of problem. I use \/var\/www\/ as localhost for server based development. I can&#8217;t get working jobs (already done) copied from another folder\/device because of rescriction by addministrator. If I open that file as administrator ,it works. But It is impossible to open a large number of files by opening as administrator when in server based job like web development. So, I must make \/var\/www\/ accessible for reading and writing for me. <\/p>\n<p>To do this here is the command which must be executed on terminal.<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nsudo chown -R www-data:ujjal \/var\/www\r\n\r\n\/\/ chown    -> change ownership\r\n\/\/ www-data (owner name from)-> right click on the file and check permission tab for the owner name.\r\n\/\/ ujjal   (owner name to be made)-> your username (check users and groups if you dont know your username)\r\n<\/pre>\n<p>or<\/p>\n<pre class=\"lang:sh decode:true \" >\r\nsudo chmod 777 -R \/var\/www\r\n<\/pre>\n<p>Precautions: Linux is case sensitive.mind it.<\/p>\n<p>Thanking you&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A common problem in using Linux is restriction. Some operations are restricted for users by root.But if it is needed to do that operation like editing what to do? Today I have faced same kind of problem. I use \/var\/www\/ as localhost for server based development. I can&#8217;t get working jobs (already done) copied from &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.ujjal.net\/?p=159\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Changing ownership\/Permission of Files\/Folders  in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[48,114,127,134,139],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-linux","tag-chown","tag-restriction","tag-terminal-code","tag-using-linux","tag-www-data"],"_links":{"self":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159"}],"version-history":[{"count":2,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ujjal.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}