{"id":30290,"date":"2014-05-13T10:44:43","date_gmt":"2014-05-13T15:44:43","guid":{"rendered":"http:\/\/webirix.com\/?p=30290"},"modified":"2014-05-13T10:44:43","modified_gmt":"2014-05-13T15:44:43","slug":"cambiar-permisos-y-propietario-en-archivos-con-la-consola-shell-de-linux","status":"publish","type":"post","link":"https:\/\/webirix.com\/en\/cambiar-permisos-y-propietario-en-archivos-con-la-consola-shell-de-linux\/","title":{"rendered":"Change permissions and owner on files with the Linux shell console"},"content":{"rendered":"<p>A pesar de que podemos cambiar los permisos de archivos desde nuestro cliente Ftp, <a href=\"http:\/\/webirix.com\/en\/cambiar-permisos-de-archivos-desde-cpanel\/\" target=\"_blank\">cPanel<\/a> or with <a title=\"Change file permissions with PHP\" href=\"http:\/\/webirix.com\/en\/cambiar-permisos-de-archivo-con-php\/\" target=\"_blank\">Php<\/a>, en ocasiones necesitamos cambiar una gran cantidad de archivos y estas opciones nos quedan cortas. Para estos casos podemos contar con la consola de Linux.<\/p>\n<p style=\"text-align: left;\"><strong><span style=\"color: #222222;\">Poner todas las carpetas con permisos 755:<\/span><\/strong><\/p>\n<div style=\"color: #222222; text-align: left;\">find \/home\/cuenta\/public_html -type d -exec chmod 755 {} \\;<\/div>\n<div style=\"color: #222222; text-align: left;\"><\/div>\n<div style=\"color: #222222; text-align: left;\"><strong>Poner todos los archivos con permisos 644:<\/strong><\/div>\n<div style=\"color: #222222; text-align: left;\">find \/home\/cuenta\/public_html -type f -exec chmod 644 {} \\;<\/div>\n<div style=\"color: #222222; text-align: left;\"><\/div>\n<div style=\"color: #222222;\"><strong><span style=\"color: red;\"><span style=\"color: black;\">Cambia el\u00a0<span style=\"color: #2e8b57;\">Owner<\/span>\u00a0Y\u00a0<span style=\"color: #2e8b57;\">Grupo<\/span>, por los indicados, en archivos y carpetas desde la carpeta &#8220;public_html&#8221; hacia abajo.<\/span><\/span><\/strong><\/p>\n<div style=\"color: #333333; text-align: left;\">\n<pre dir=\"ltr\">chown -R propietario:grupo \/home\/cuenta\/public_html<\/pre>\n<\/div>\n<p><strong><span style=\"color: red;\"><span style=\"color: black;\">Cambia\u00a0solo\u00a0el\u00a0<span style=\"color: #2e8b57;\">Owner<\/span>, por el indicado, en archivos y carpetas desde la carpeta &#8220;joomla&#8221; hacia abajo.<\/span><\/span><\/strong><br style=\"color: #333333;\" \/><\/p>\n<div style=\"color: #333333; text-align: left;\">\n<div>chown -R propietario \/home\/cuenta\/public_html<\/div>\n<div><\/div>\n<\/div>\n<p><strong><span style=\"color: red;\"><span style=\"color: black;\">Cambia\u00a0solo\u00a0el\u00a0<span style=\"color: #2e8b57;\">Grupo<\/span>, por el indicado, en archivos y carpetas desde la carpeta &#8220;joomla&#8221; hacia abajo.<\/span><\/span><\/strong><br style=\"color: #333333;\" \/><\/p>\n<div style=\"color: #333333; text-align: left;\">\n<div><strong>C\u00f3digo:<\/strong><\/div>\n<pre dir=\"ltr\">chgrp -R grupo \/home\/cuenta\/public_html<\/pre>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Although we can change file permissions from our Ftp, cPanel or Php client, sometimes we need to change a large number of files and these options fall short. For these cases we can count on the Linux console. Put all folders with 755 permissions: find \/ home \/ account \/ public_html -type d -exec\u2026<\/p>","protected":false},"author":2,"featured_media":30186,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2014],"tags":[],"class_list":["post-30290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programacionweb"],"jetpack_featured_media_url":"https:\/\/webirix.com\/wp-content\/uploads\/2014\/04\/512px-Tux.svg_.png","_links":{"self":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/30290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/comments?post=30290"}],"version-history":[{"count":1,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/30290\/revisions"}],"predecessor-version":[{"id":30291,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/30290\/revisions\/30291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media\/30186"}],"wp:attachment":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media?parent=30290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/categories?post=30290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/tags?post=30290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}