Monu Tools

chmod 계산기

Unix 파일 권한을 체크박스, 8진수(예: 755), 기호 표기(예: rwxr-xr-x) 간에 변환합니다.

chmod 계산기 사용 방법

  1. 01

    소유자, 그룹, 기타에 대한 읽기, 쓰기, 실행 체크박스를 선택하세요.

  2. 02

    또는 755와 같은 8진수 값을 입력하여 체크박스를 자동으로 설정하세요.

  3. 03

    바로 실행할 수 있는 chmod 명령을 복사하세요.

What Unix permissions are

Unix file permissions control who can read, write and execute a file or directory, split across three groups: the owner, the group, and everyone else. This calculator converts between interactive checkboxes, the numeric octal form like 755, and the symbolic form like rwxr-xr-x, keeping all three in sync.

How the numbers work

Each group gets three bits, read (4), write (2) and execute (1), and you add them up to get one digit. So 7 is read plus write plus execute (rwx), 5 is read plus execute (r-x), and 6 is read plus write (rw-). Three digits, one per group, give you the familiar permission number.

Common values worth knowing

The common values are worth memorizing. 755 suits directories and executables: the owner has full access while group and others can read and execute but not write. 644 suits normal web files: the owner can read and write, everyone else can only read.

For sensitive files, 600 keeps things tight: only the owner can read or write, and nobody else has any access, which is what SSH private keys and similar secrets need.

Special bits and the fourth digit

There is also an optional fourth leading digit for special bits, setuid, setgid and the sticky bit, which change how programs run or how a shared directory behaves. When one is set, the execute position shows as s or t instead of x.

How to use the output

The calculator gives you the ready-to-run chmod command to copy, and runs entirely in your browser. It is a reference and converter, so it does not change any files itself.

자주 묻는 질문

755와 644는 무엇을 의미하나요?

755는 소유자에게 전체 접근 권한을, 나머지에게는 읽기 및 실행 권한을 부여합니다. 디렉터리와 스크립트에 사용됩니다. 644는 소유자에게 읽기 및 쓰기, 나머지에게는 읽기만 부여합니다. 일반 파일에 사용됩니다.

777은 무엇이며 안전한가요?

777은 모든 사람에게 읽기, 쓰기, 실행 권한을 부여합니다. 서버에서는 누구나 파일을 수정할 수 있어 거의 항상 안전하지 않습니다. 대신 755 또는 644를 사용하세요.

파일을 실행 가능하게 만들려면 어떻게 하나요?

실행 비트를 추가하세요. 644에서 755로 변경하거나 chmod +x를 사용하면 소유자, 그룹, 기타 모두에게 실행 권한이 부여됩니다.

기호 표기와 8진수 표기의 차이는 무엇인가요?

8진수(예: 755)는 권한을 숫자로 인코딩하고, 기호(rwxr-xr-x 또는 u+x)는 문자로 설명합니다. 이 도구는 두 표기 모두 표시하고 동기화됩니다.

setuid, setgid, sticky bit란 무엇인가요?

네 번째 앞자리 숫자입니다. setuid와 setgid는 프로그램을 소유자 또는 그룹으로 실행하고, 디렉터리의 sticky bit는 사용자들이 서로의 파일을 삭제하지 못하게 합니다(/tmp처럼).

실행 비트가 s 또는 t로 표시되는 이유는 무엇인가요?

setuid, setgid 또는 sticky bit가 설정된 경우 특수 비트가 활성화되었음을 알리기 위해 실행 위치가 x 대신 s 또는 t로 표시됩니다.

출처

이 도구 임베드하기

이 도구를 직접 운영하는 웹사이트에 추가하세요. 아래 코드를 복사하면 자동으로 최신 상태로 유지됩니다.

<iframe src="https://monu.tools/embed/ko/chmod-calculator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

관련 도구