리눅스 CHMOD 예제
페이지 정보

본문
$ chmod u+x FILE # 파일 소유 사용자에게 실행권한 추가.
$ chmod u+w FILE # 파일 소유 사용자에게 쓰기 권한 추가.
$ chmod u=rwx FILE # 파일 소유 사용자에게 읽기, 쓰기, 실행 권한 지정.
$ chmod u-x FILE # 파일 소유 사용자의 실행 권한 제거.
$ chmod g+w FILE # 파일 소유 그룹에 쓰기 권한 추가.
$ chmod g-x FILE # 파일 소유 그룹의 실행 권한 제거.
$ chmod o=r FILE # 파일 소유 사용자 및 그룹을 제외한 사용자는 읽기만 가능.
$ chmod a-x * # 현재 디렉토리의 모든 파일에서 모든 사용자의 읽기 권한 제거.
$ chmod a-w FILE # 모든 사용자에 대해 쓰기 권한 제거.
$ chmod u=rwx,g=r FILE # 파일 소유 사용자는 모든 권한, 그룹은 읽기만 가능.
$ chmod ug=rw FILE # 파일 소유 사용자와 그룹이 읽기, 쓰기 가능.
$ chmod g=rw,o=r FILE # 파일 소유 그룹은 읽기, 쓰기 가능, 그 외 사용자는 읽기만 가능.
$ chmod ug=rw,o=r FILE # 파일 소유 사용자 및 그룹은 일기, 쓰기 가능, 그외 사용자는 읽기만 가능.
$ chmod 000 FILE # 모든 사용자의 모든 권한 제거. = ---------
$ chmod 664 FILE # 사용자(읽기+쓰기), 그룹(읽기+쓰기), 그외 사용자(읽기) = rw-rw-r--
$ chmod 755 FILE # 사용자(읽기+쓰기+실행), 그룹(읽기+실행), 그외 사용자(읽기+실행) = rwxr-xr-x
$ chmod 777 FILE # 모든 사용자에 모든 권한 추가.
$ chmod -R g+x DIR # DIR 디렉토리 하위 모든 파일 및 디렉토리에 그룹 실행(x) 권한 추가.
$ chmod -R o-wx * # 현재 디렉토리의 모든 파일에서 그외 사용자의 쓰기, 실행 권한 제거
$ chmod -R a-x,a+X * # 현재 디렉토리 기준 모든 파일 읽기 권한 제거, 디렉토리 실행 권한 추가.
$ chmod -R a-x+X * # 위(chmod -R a-x,a+X *)와 동일.
$ chmod u=g FILE # FILE의 그룹 권한 값을 사용자 권한으로 적용.
$ ls -l
-rwxr--r-- 1 ppotta manager 23 Mar 26 04:13 FILE
$ chmod u=g FILE
-r--r--r-- 1 ppotta manager 23 Mar 26 04:13 FILE
$ chmod u+g FILE # FILE의 사용자 권한에 그룹 권한 값을 추가.
$ ls -l
-r-x-w--w- 1 ppotta manager 23 Mar 26 04:13 FILE
$ chmod u+g FILE
-rwx-w--w- 1 ppotta manager 23 Mar 26 04:13 FILE
- 이전글[VPN]원격 컴퓨터에 연결하지 못했습니다 이 연결에 대한 네트워크 설정을 변경해야 합니다. 24.11.22
- 다음글rsync none id:pass ssh 접속하기 24.11.20
댓글목록

Teri Okeefe님의 댓글
Teri Okeefe 작성일
Cliff Mackey님의 댓글
Cliff Mackey 작성일
https://git.mklpiening.de/cpuverlene6325/blackcoin.co9406/wiki/Play-%26-Win-Big-Today%21
https://gitea.springforest.top/palmatiffany69
https://git.daoyoucloud.com/albertinap4122
https://www.ituac.com/genniebojorque
https://git.mikspec.pl/audreypritchar/blackcoin.co1986/wiki/Play+%26+Win+Big+with+Top+Bonuses+Today%21
https://gogs.artapp.cn/dericksceusa58
https://shamrick.us/chadpelletier8
https://www.nemusic.rocks/kenneth02u081
https://koljastrohm-games.com:3000/connor84235928
https://www.cloud.file.futurestack.cn/hilariocutlack
https://gogs.artapp.cn/eunicetatum926/2039blackcoin.co/wiki/Casino%252C+NSW
https://otgchat.com/read-blog/8595_skycrown-android-app-get-your-100-welcome-bonus-now.html
https://slowdating.ca/@alfonsowhipple
https://zm.aosenhw.com/@grovermccauley
https://git.limework.net/alinadubay338
https://git.aopcloud.com/dsuemilio1018/blackcoin.co8670/wiki/King-Billy-Casino-Australia-%E1%90%88-King-Billy-Online-Login
https://git.mikspec.pl/cbzjanessa2230
https://hub.hdc-smart.com/arden48835531
https://git.fandiyuan.com/abrahamshick50/abraham2022/wiki/Casino-Activities-NSW-Holidays-%26-Accommodation%2C-Things-to-Do%2C-Attractions-and-Events
https://gitea.gimmin.com/amiestretch92
https://git.kraft-werk.si//aracelycraig9/blackcoin2908/-/issues/2 https://qrew.social/read-blog/10732_crown-towers-sydney-review-hotel-delivers-the-wow-factor-city-has-been-missing.html
