Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- 파이썬
- audit
- log
- centos 7.5
- syslog
- bash
- Chrome
- yum
- JSON
- Elk
- K8S
- GNOME
- Linux
- 서울시민카드
- 빅데이터
- CentOS
- 디렉토리
- docker
- zabbix
- C
- Python
- RHEL
- rsyslog
- Shell
- Audit Log
- Kubernetes
- PostgreSQL
- 크롬
- GPU
- Elasticsearch
Archives
- Today
- Total
Sysops Notepad
[Linux] Ansible을 용한 디렉토리 755, 파일 644로 권한 설정하기 본문
728x90
Ansible을 용한 디렉토리 755, 파일 644로 권한 설정하는 방법입니다.
- name: "Mode 755 for directory and 644 for files"
file:
path: "/home/test"
mode: u=rwX,g=rX,o=rX
recurse: yes
만약 그냥 쉘에서 입력하고 싶으면 아래와 같이 입력하시면 됩니다.
# find /home/test -type d -exec chmod 755 {} \;"
# find /home/test -type f -exec chmod 644 {} \;"
728x90
'업무 > etc' 카테고리의 다른 글
| [Linux] 실행중인 yum 중단 or 삭제하기 (0) | 2021.04.22 |
|---|---|
| [Linux] find 명령어 및 다양한 옵션을 통한 파일 검색/삭제 (0) | 2021.04.22 |
| Tensorflow 설치 및 테스트 코드 (0) | 2021.04.11 |
| [Linux] 디렉토리 또는 파일 개수 세기 (0) | 2021.04.11 |
| [Linux] 실시간 트래픽 체크 스크립트 (0) | 2021.04.11 |
Comments