Calculate Linux file permissions interactively — convert between octal, symbolic, and chmod commands
Linux & 서버
Chmod 계산기
Linux 파일 권한을 인터랙티브하게 계산 — 8진수, 심볼릭, chmod 명령어 변환
Octal
Symbolic
rw-r--r--
Command
chmod644filename
Common Presets
Permission Bits
Read (r=4)
Write (w=2)
Execute (x=1)
Owner6
Group4
Others4
Special—
setuid
setgid
sticky
How to Use
Step 1
Click checkboxes
Toggle Read, Write, and Execute permissions for Owner, Group, and Others in the permission grid.
Step 2
Or type the octal
Click the large octal number (e.g. 755) and type a new value — the checkboxes update instantly.
Step 3
Use a preset
Select a common permission preset like 644 or 755 to jump-start your configuration.
Step 4
Copy the command
Enter your filename, optionally enable recursive (-R), then copy the ready-to-run chmod command.
사용 방법
Step 1
체크박스 클릭
권한 그리드에서 Owner, Group, Others별 읽기·쓰기·실행 권한을 토글합니다.
Step 2
또는 8진수 직접 입력
큰 숫자(예: 755)를 클릭하고 새 값을 입력하면 체크박스가 즉시 업데이트됩니다.
Step 3
프리셋 사용
644, 755 같은 일반적인 권한 프리셋을 선택해 빠르게 시작할 수 있습니다.
Step 4
명령어 복사
파일명을 입력하고 재귀(-R) 여부를 설정한 뒤, 완성된 chmod 명령어를 복사하세요.
Frequently Asked Questions
chmod 755 sets Owner: read+write+execute (7), Group: read+execute (5), Others: read+execute (5). It is the standard permission for executables and directories that should be publicly readable but only writable by the owner.
644 is for regular files — the owner can read and write, while group and others can only read. 755 adds execute permission, making it suitable for scripts, binaries, and directories (which require execute permission to be traversed).
The sticky bit (octal 1000, shown as t in the symbolic notation) restricts file deletion inside a directory to the file's owner only. It is commonly used on shared directories like /tmp to prevent users from deleting each other's files.
Enable the Recursive (-R) toggle above the command preview. This adds the -R flag so chmod -R 755 dirname applies the permission to the directory and all its contents. Use with caution — recursive chmod can break files that need different permissions.
Private SSH keys (~/.ssh/id_rsa) must be 600 (owner read+write only). The ~/.ssh/ directory should be 700. Public keys (authorized_keys) should be 644. SSH will refuse to use a private key that is accessible by group or others.
자주 묻는 질문
chmod 755는 Owner: 읽기+쓰기+실행(7), Group: 읽기+실행(5), Others: 읽기+실행(5)을 설정합니다. 실행 파일과 디렉터리에 사용하는 표준 권한으로, 소유자만 쓸 수 있고 나머지는 읽고 실행할 수 있습니다.
644는 일반 파일에 사용합니다 — 소유자는 읽기·쓰기, 그룹과 기타는 읽기만 가능합니다. 755는 실행 권한이 추가되어 스크립트, 바이너리, 디렉터리(탐색에 실행 권한 필요)에 적합합니다.
스티키 비트(8진수 1000, 심볼릭 t)는 디렉터리 내 파일을 소유자만 삭제할 수 있도록 제한합니다. /tmp처럼 여러 사용자가 공유하는 디렉터리에서 서로의 파일을 삭제하지 못하게 할 때 사용합니다.
명령어 미리보기 위의 Recursive (-R) 토글을 활성화하면 -R 플래그가 추가됩니다. chmod -R 755 dirname처럼 디렉터리와 모든 하위 파일에 권한이 적용됩니다. 파일별로 다른 권한이 필요한 경우 주의해서 사용하세요.
SSH 개인 키(~/.ssh/id_rsa)는 반드시 600(소유자 읽기+쓰기만)이어야 합니다. ~/.ssh/ 디렉터리는 700, 공개 키(authorized_keys)는 644로 설정하세요. 그룹이나 기타에 접근 권한이 있는 개인 키는 SSH가 사용을 거부합니다.