{"id":255,"date":"2005-02-28T15:32:24","date_gmt":"2005-02-28T23:32:24","guid":{"rendered":"\/?p=255"},"modified":"2005-03-01T00:38:52","modified_gmt":"2005-03-01T08:38:52","slug":"useful-linux-command","status":"publish","type":"post","link":"https:\/\/arcanius.silverfir.net\/blog\/useful-linux-command\/","title":{"rendered":"Useful Linux Command"},"content":{"rendered":"<p>Today I was searching for a good way to change permissions recursively, but only on directories or only on files, because of the vast difference in meaning for the executable flag between the two. Google is a great friend, and led me to a site, whose address I do not exactly remember, but whose advice was perfect:<br \/>\n<code><br \/>\nfind . -type d -name public_html -exec chmod 0755 {} \\;<br \/>\n<\/code><br \/>\nJust strip out the <code>-name argument<\/code>, and change between <code>-type d<\/code> and <code>-type f<\/code> to chmod only files or only directories, recursively from the current directory. A great way to correct past misconceptions about the setgid and setuid bits!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I was searching for a good way to change permissions recursively, but only on directories or only on files, because of the vast difference in meaning for the executable flag between the two. Google is a great friend, and led me to a site, whose address I do not exactly remember, but whose advice [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,8],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-everything","tag-silverfir","tag-technology"],"_links":{"self":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":0,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}