본문 바로가기
Linux

[linux] Ubuntu 18.04 directory 만들 때 권한 옵션 주기

by Chandler.j 2021. 10. 5.
반응형

fig 1. title

 

# 1. create directory 

# 2. create directory with permission

 


# 1. create directory

mkdir /path/directoryname

# 2. create directory with permission

mkdir -m 777 path/directoryname

 

 

2. 관련 ref : https://stackoverflow.com/questions/5786326/how-to-create-a-directory-and-give-permission-in-single-command

 

How to create a directory and give permission in single command

How to create a directory and give permission in single command in Linux? I have to create lots of folder with full permission 777. Commands mkdir path/foldername chmod 777 path/foldername I don'...

stackoverflow.com

permission 관련 ref: https://conory.com/blog/19194

 

[기본] 리눅스의 퍼미션(권한)을 조정하기 (chmod, chown)

리눅스는 여러사용자가 들어와 사용하는 멀티유저 시스템입니다.. 그런데 한가지 문제가 발생합니다. 여러 사용자가 들어오면 서버에 올려진 비밀자료 열람과 그것을 변조,수정,삭제를 할 우려

conory.com

 


TOP

Designed by 티스토리