/etc/skel

  • 등록 2017.07.12 11:47:33
크게보기

/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
노랑배 kosthb@gmail.com
Copyright @2011 mediaon Corp. All rights reserved.

사이트에 관련하여 연락은 메일로 주세요. kosthb골뱅이gmail.com Copyright 2011 mediaon. All rights reserved.