• 맑음동두천 25.8℃
  • 구름조금강릉 27.3℃
  • 맑음서울 26.6℃
  • 구름많음대전 25.0℃
  • 흐림대구 22.6℃
  • 흐림울산 23.8℃
  • 구름많음광주 24.8℃
  • 흐림부산 27.2℃
  • 구름조금고창 25.2℃
  • 제주 24.5℃
  • 맑음강화 25.7℃
  • 구름많음보은 24.4℃
  • 구름많음금산 25.9℃
  • 구름많음강진군 26.3℃
  • 흐림경주시 22.1℃
  • 구름많음거제 25.3℃
기상청 제공

/etc/skel

/etc/skel 디렉토리는 사용자 계정 생성(useradd)시에 환경 설정 파일들이 저장되어 있는 디렉토리다.
이 파일들은 useradd 명령어로 계정 생성시에  /etc/skel 이라는 디렉토리에 존재하는 파일들을 그대로 복사해온다.
새로생성되는 사용자의 홈디렉토리로 복사 되어진다.

root@web:/etc# ll skel
total 20
drwxr-xr-x.  2 root root 4096 Dec 25 07:51 .
drwxr-xr-x. 82 root root 4096 Jan  2 03:24 ..
-rw-r--r--.  1 root root   18 May 11  2012 .bash_logout
-rw-r--r--.  1 root root  176 May 11  2012 .bash_profile
-rw-r--r--.  1 root root  124 May 11  2012 .bashrc
roroot@web:/# useradd KY
root@web:/# passwd hky
Changing password for user hky.
New password:
passwd: all authentication tokens updated successfully.ot@web:/# ll /home/KY
total 20
drwx------  2 KY   KY   4096 Jan  3 10:45 .
drwxr-xr-x. 5 root root 4096 Jan  3 10:45 ..
-rw-r--r--  1 KY   KY     18 May 11  2012 .bash_logout
-rw-r--r--  1 KY   KY    176 May 11  2012 .bash_profile
-rw-r--r--  1 KY   KY    124 May 11  2012 .bashrc