티스토리 뷰

사용자 계정을 새로 생성하게 되면 자동적으로 홈 디렉토리가 /home/user1이된다.

그리고 생성과 동시에 /etc/skel 디렉토리의 모든내용을 사용자의 /home/user1디렉토리로 복사해주는 작업이 일어난다. 그러면 배포하고 싶은 것을 /etc/skel 디렉토리에 넣어서 새로운 사용자에게 나눠주자.

 

As we know or not, new users home directory will be automatically set  as /home/newuser/, meanwhile when it happens all files will be copied to /home/user1 from /etc/skel directory. So let's see what happens if we copy file into /etc/skel that we want to distribute to new users. 

 

 

 

home directory of newuser automatically set as /home/newuser when we create new user.

 

 

 

 

/home/newuser copied by /etc/skel

 

 

 

 

copy install.log into and paste it in /etc/skel directory

 

 

 

 

after we locate 'install.log' file in /etc/skel directory, we added newuser1 and find out what would be inside its directory, '/home/newuser1'. Then we found out install.log file which was located on purpose in /etc/skel directory is also locate in newuser1 home directory.

 

 

 

 

 

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
more
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함