🔐

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) 두 가지 표기법이 있습니다. 이 도구는 체크 방식으로 두 표기법을 변환해 주어 수동 계산 실수로 파일이 열리지 않거나 권한이 과도하게 열리는 것을 방지합니다.

사용 방법


  • 표에서 소유자, 그룹, 기타 사용자의 읽기(r=4), 쓰기(w=2), 실행(x=1) 권한을 체크합니다

  • 오른쪽에 각 그룹의 값이 실시간으로 표시되고, 아래에 3자리 8진수, 4자리 8진수, 기호 표기가 함께 표시됩니다

  • 「8진수」 입력란에 755를 직접 입력해도 체크박스가 역으로 동기화됩니다

  • 자주 쓰는 권한 버튼을 누르면 644 / 600 / 755 / 700 / 775 / 777을 빠르게 적용할 수 있습니다

  • 하단 어두운 상자에 복사 가능한 `chmod xxx filename` 명령어가 표시됩니다


  • 주의 사항


  • 777은 모든 사람이 이 파일을 수정할 수 있다는 뜻이므로 운영 환경에서는 이렇게 설정하지 마세요. 웹사이트 디렉터리의 일반적인 관행은 파일 644, 디렉터리 755입니다

  • 실행 권한(x)은 실제로 실행해야 하는 스크립트에만 부여하세요. 일반 텍스트 파일, 이미지에는 x가 필요 없습니다

  • 8진수 각 자리는 0-7만 가능하며, 8이나 9를 입력하면 도구가 자리값을 적용하고 안내를 표시합니다

  • 디렉터리의 x는 「이 디렉터리에 들어갈 수 있음」을 의미하며 파일의 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.