Write the permissions you want the file to have. To make your life easier, write the permissions grouped into sets of three letters. For example, let’s say you want file info.sh to have these permissions
- rwx r-x r-- info.sh
Under each letter, write a digit 1; under each dash write a digit zero. Ignore the dash at the very beginning that tells you whether it’s a file or directory. This gives you three binary numbers.
- rwx r-x r-- info.sh
111 101 100
chmod 753 (파일이름) 하시면그 파일의 소유자는 4(읽기) + 2(쓰기) + 1(실행) = 7 의 권한을 가지고그 그룹의 소유자는 4(읽기) + 1(실행) = 5 의 권한을 가지고그 외의 사람들은 2(쓰기) + 1(실행) = 3 의 권한을 가지게 됩니다


댓글 없음:
댓글 쓰기