/etc/skel 디렉토리 속에 public_html 디렉토리를 만들어 놓은 후에 사용자를 생성하면 된다.

/etc/skel 디렉토리 속의 내용을 새로생성되는 사용자의 홈디렉토리 속에 copy하는 것이 useradd 명령어가 하는 일 중의 하나임

그렇기 때문에 useradd 명령으로 사용자를 추가하기 전에 /etc/skel/public_html 을 만들어 놓으면 useradd 명령으로 사용자를 추가할 때마다

사용자의 홈디렉토리에 public_html 디렉토리가 생성됨.

index 파일을 미리 만들어 /etc/skel/public_html/ 속에 넣어두고 사용자를 생성하면 index 페이지도 사용자 홈디렉토리 밑의 public_html 에 복사됨.