티스토리 뷰
사용자에게 파일 배포. Distribute file to new users by /etc/skel
sai505 2012. 11. 19. 17:15사용자 계정을 새로 생성하게 되면 자동적으로 홈 디렉토리가 /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.
'ORACLE DB > Linux Server' 카테고리의 다른 글
rpm의 문제점. Down of rpm command (0) | 2012.11.19 |
---|---|
하드링크와 심볼릭링크 차이. Diff btw Hard link & Symbolic link (0) | 2012.11.19 |
CD USB MOUNT 마운트하기. ISO파일 생성 및 사용.Create ISOfile and use it (0) | 2012.11.19 |
Samba Client- Fedora에서 Windows 폴더 사용. Share Windows Folders on Fedora. (0) | 2012.11.19 |
Fedora Server X 윈도우 root접속. Root Access on Server X Window (0) | 2012.11.17 |