A umask masks bits off the default permissions. Enter a umask and instantly see the resulting permissions for new files and directories.
644 (rw-r--r--) and new directories become 755 (rwxr-xr-x). This is the default on most Linux systems.666 for files and 777 for directories. Files never get the execute bit by default, which is why a file maxes out at 666.umask 027 to your shell profile (~/.bashrc or ~/.profile), or to /etc/profile for all users.077 gives new files 600 and directories 700 — only the owner has any access. Use it for private servers and sensitive data.TextraHost plans start at $5.50/mo with full root access and SSD-NVMe storage.