🔐
Chmod Calculator
Pick read/write/execute bits and get the octal mode plus the chmod command
| Identity | Read r (4) | Write w (2) | Execute x (1) | Value |
|---|
chmod 755 filename
Security reminder: 777 (writable by everyone) means anyone can replace the contents of this file, so don't set it this way in a production environment. A common practice for website directories is 644 for files and 755 for directories; only give x to scripts that actually need execute permission.
Instructions
chmod 권한 계산기 사용说明
기능 소개
Linux 파일 권한은 8진수(755)와 기호(rwxr-xr-x) 두 가지 표기법이 있습니다. 이 도구는 체크 방식으로 두 표기법을 변환해 주어 수동 계산 실수로 파일이 열리지 않거나 권한이 과도하게 열리는 것을 방지합니다.
사용 방법
주의 사항
❓ FAQ
Where are 644 and 755 used?
644 is for regular files: the owner can read and write, others can only read. 755 is for directories and scripts that need to run: the owner can read, write and execute, others can read and execute.
Why can't 777 be used in production?
777 means anyone can modify the file. If a website directory is 777, an attacker only needs to find an upload entry point to replace it with their own script and run it, which is very risky.
What does x mean in directory permissions?
For a directory, x means "you can enter it and look up files inside it". If a directory has no x, you cannot access the files inside even if it has r permission.