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
- ansible
- PlayBook
- Windows
- Kibana
- pfsense
- Kibana server is not ready yet
- Elasticsearch
- macos
- ELASTIC
- docker
- xe guest utilities
- GitLab
- centos 8
- Proxy
- 보안양파
- x-pack
- bash
- elastic stack
- 로그인불가
- XCP-ng
- G-suite
- miniconda
- 한글가이드
- proxycfg
- application security
- ssh key 배포
- freebsd
- endpoint security
- hardening
Archives
- Today
- Total
선 밖에 선 자유인
퍼미션 체크 shell script 본문
특정 파일 permission 확인
- /etc/hosts 파일의 퍼미션
$ ls -l /etc/hosts | awk -F . {'print $1'}
- User 퍼미션
$ ls -l /etc/hosts | awk -F . {'print $1'} | cut -c -4 | cut -c 2-
rw-
- Group 퍼미션
$ ls -l /etc/hosts | awk -F . {'print $1'} | cut -c 5- | cut -c -3
r--
- Others 퍼미션
$ ls -l /etc/hosts | awk -F . {'print $1'} | cut -c 8-
r--
Comments