Linux 디렉터리의 Permission 변경하기


<test 디렉터리에 위치한 모든 파일 및 디렉터리의 소유 그룹에게 read, execute 권한 설정하기>
chmod -R g+rx test/
ls -ltr
** -R: recursive  (하위 디렉터리까지 적용하기)

chmod -R g-rx test/
ls -ltr

<test 디렉터리에 위치한 파일은 제외하고 모든 디렉터리의 소유 그룹에게 read, execute 권한 설정하기>
chmod -R g+rX test/
ls -ltr

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s