Linux - Permisos de Archivos

Aprende a usar ls -l para ver archivos y directorios, interpretar permisos y emplear chmod, chown y chgrp. Seguridad en la nube, automatización y ciberseguridad con Q2BSTUDIO

14 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Hola a todos, vamos a ver cómo examinar qué archivos y directorios hay en una carpeta usando el comando ls -l y qué información nos devuelve cada columna.

Si ejecutas ls -l podrías ver una salida como estas líneas de ejemplo -rw-r--r-- 1 student student 0 Sep 14 07:45 hello.txt y drwxr-xr-x 2 student student 4096 Sep 14 07:48 logs. A simple vista aparecen el nombre del archivo o directorio y otras columnas con permisos, número de enlaces, propietario, grupo, tamaño y fecha.

La primera columna muestra el tipo y los permisos. El primer carácter indica el tipo: un guion - significa archivo regular y una d significa directorio. A continuación hay nueve caracteres agrupados de tres en tres que representan permisos para propietario, grupo y otros. Las letras r w x significan respectivamente permiso de lectura read, escritura write y ejecución execute. Por ejemplo drwxr-xr-x se lee como d que indica directorio; luego rwx es para el propietario con lectura, escritura y ejecución; r-x para el grupo con lectura y ejecución; y r-x para los demás con lectura y ejecución.

Si numeramos esas posiciones 123456789, los dígitos 123 corresponden al propietario, 456 al grupo y 789 a los demás. También puedes encontrar la representación numérica de permisos como 755 que equivale a rwxr-xr-x y 644 que equivale a -rw-r--r--. Para cambiar permisos se usa chmod y para cambiar propietario y grupo se usan chown y chgrp.

En la salida, después de los permisos aparece el número de enlaces y luego los nombres de propietario y grupo. En el ejemplo drwxr-xr-x 2 student student 4096 Sep 14 07:48 logs el primer student es el propietario y el segundo student es el grupo. Esa información es clave para administrar accesos y auditar seguridad en sistemas Linux.

Además de entender permisos básicos, en entornos productivos conviene combinar buenas prácticas de permisos con controles avanzados de seguridad y gestión en la nube. En Q2BSTUDIO ofrecemos servicios que abarcan desde desarrollo de software a medida y aplicaciones a medida hasta soluciones de ciberseguridad y pentesting y despliegues en la nube. Podemos ayudarte a auditar permisos, automatizar configuraciones y desplegar infraestructuras seguras en servicios cloud AWS y Azure.

Nuestro equipo está especializado en inteligencia artificial, ia para empresas, agentes IA, power bi y servicios inteligencia de negocio para sacar valor de tus datos, así como en ciberseguridad para proteger aplicaciones y sistemas. Si necesitas una solución integral que incluya auditoría de permisos, automatización de procesos y desarrollo seguro de aplicaciones, en Q2BSTUDIO diseñamos e implementamos soluciones a medida que encajan con tus requisitos.

Resumen rápido: usa ls -l para ver tipo, permisos, enlaces, propietario, grupo, tamaño y fecha. Interpreta la primera letra para distinguir archivo o directorio, y los nueve caracteres siguientes por tripletas propietario/grupo/otros con r w x. Para aplicar cambios usa chmod, chown y chgrp y considera complementar con controles de seguridad y despliegue en la nube ofrecidos por expertos.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat