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 |
Tags
- 서울시민카드
- CentOS
- rsyslog
- PostgreSQL
- 빅데이터
- Audit Log
- C
- audit
- RHEL
- Linux
- K8S
- 디렉토리
- docker
- GPU
- Kubernetes
- Shell
- Elasticsearch
- zabbix
- centos 7.5
- Chrome
- GNOME
- Python
- bash
- yum
- Elk
- log
- 크롬
- syslog
- 파이썬
- JSON
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