Chmod 계산기
심볼릭 및 숫자 표기법으로 Unix 파일 권한을 계산합니다
읽기 (r) | 쓰기 (w) | 실행 (x) | 8진수 | |
|---|---|---|---|---|
| 소유자 | 7 | |||
| 그룹 | 5 | |||
| 기타 | 5 |
| 심볼릭 | 8진수 | 권한 설명 |
|---|---|---|
| r | 4 | 읽기 |
| w | 2 | 쓰기 |
| x | 1 | 실행 |
| rw- | 6 | 읽기 + 쓰기 |
| r-x | 5 | 읽기 + 실행 |
| rwx | 7 | 읽기 + 쓰기 + 실행 |
사용 방법
값 입력
입력 필드에 숫자나 매개변수를 입력하세요.
즉시 결과 확인
입력하는 즉시 결과가 자동으로 업데이트됩니다 — 제출 버튼이 필요 없습니다.
복사 또는 저장
결과를 클립보드에 복사하거나 작업 흐름에 활용하세요.
이 도구를 사용하는 이유
100% 무료
숨겨진 비용도, 프리미엄 등급도 없습니다 — 모든 기능이 무료입니다.
설치 불필요
브라우저에서 완전히 실행됩니다. 소프트웨어를 다운로드하거나 설치할 필요가 없습니다.
프라이빗 & 안전
데이터가 기기 밖으로 나가지 않습니다. 어떤 서버에도 업로드되지 않습니다.
모바일 지원
완전 반응형 — 스마트폰, 태블릿, 데스크톱에서 사용할 수 있습니다.
Unix File Permissions: Understanding chmod and Access Control
Key Takeaways
- Unix permissions use three octal digits representing read (4), write (2), and execute (1) for owner, group, and others.
- Incorrect file permissions are a leading cause of security vulnerabilities in web servers and application deployments.
- All permission calculations happen in your browser — no system information is accessed or transmitted.
Unix file permissions control who can read, write, and execute files and directories on Linux, macOS, and other Unix-like systems. The chmod command and its numeric notation are essential knowledge for system administrators, DevOps engineers, and anyone deploying web applications. Incorrect permissions can either lock out legitimate access or expose sensitive files to unauthorized users.
Overly permissive file permissions (777) are cited in over 20% of web server compromise investigations.
Security Impact
Key Concepts
Permission Triplets
Each file has three permission sets: owner (u), group (g), and others (o). Each set can have read (r=4), write (w=2), and execute (x=1). The sum gives the octal digit: rwx = 7, rw- = 6, r-x = 5.
Symbolic vs. Numeric Mode
Symbolic: chmod u+x file (add execute for owner). Numeric: chmod 755 file (rwx for owner, rx for group and others). Numeric mode sets all permissions at once; symbolic mode modifies specific bits.
Directory Permissions
For directories, read (r) allows listing contents, write (w) allows creating/deleting files, and execute (x) allows entering the directory. A common secure setting is 755 for directories and 644 for files.
Special Permissions
SUID (4xxx) runs a file as its owner. SGID (2xxx) runs as its group or inherits group on directories. Sticky bit (1xxx) on directories prevents users from deleting others' files (used on /tmp).
Pro Tips
Use 644 (-rw-r--r--) for regular files and 755 (drwxr-xr-x) for directories as your secure default.
Never use 777 in production — it allows anyone to read, write, and execute. Find a more restrictive permission that meets your needs.
Web server files should be owned by the web server user (www-data, nginx) with 640 or 644 permissions.
Use umask to set default permissions for newly created files — a umask of 022 results in 755 for directories and 644 for files.
All permission calculations are performed entirely in your browser. No system files or permissions are accessed or modified. This tool is for calculation and education purposes only.