Страница 1 из 1

Люди помогите с написанием скрипта

Добавлено: 2010-04-27 14:24:56
ruslanstep1
Люди помогите с написанием скрипта пожалуйста.
нужно чтоб при появлении нового пользователя в /home капировал туда файлики

Re: Люди помогите с написанием скрипта

Добавлено: 2010-04-27 14:32:12
terminus
http://onlamp.com/pub/a/bsd/2001/01/03/ ... asics.html
You'll note that a home directory was created for the user and that it contains a lot of files that begin with a period or dot. Remember that dot-file directory mentioned when we used the adduser utility? Let's take a look at it now:
ls -l /usr/share/skel

total 10
drwxr-xr-x 2 root wheel 512 Dec 8 11:53 ./
drwxr-xr-x 26 root wheel 512 Nov 20 08:11 ../
-rw-r--r-- 1 root wheel 628 Nov 20 07:01 dot.cshrc
-rw-r--r-- 1 root wheel 299 Nov 20 07:01 dot.login
-rw-r--r-- 1 root wheel 160 Nov 20 07:01 dot.login_conf
-rw------- 1 root wheel 371 Nov 20 07:01 dot.mail_aliases
-rw-r--r-- 1 root wheel 331 Nov 20 07:01 dot.mailrc
-rw-r--r-- 1 root wheel 722 Nov 20 07:01 dot.profile
-rw------- 1 root wheel 276 Nov 20 07:01 dot.rhosts
-rw-r--r-- 1 root wheel 852 Nov 20 07:01 dot.shrc

Note that the eight files created in our new user's home directory were copied from the template files contained in this directory. Also note that only the superuser can edit the files contained in the skel directory. For example, if you wished all users to receive a customized shell prompt, the superuser could modify the usr/share/skel/dot.cshrc file which would then be copied to all users' home directories when you created the users. Also, the superuser can also place any other dotfiles he wishes users to receive in the skel directory; for example, you can create a customized .xinitrc file for users.

Re: Люди помогите с написанием скрипта

Добавлено: 2010-04-27 14:55:33
ruslanstep1
там freebsd а у меня ubuntu 9.10

Re: Люди помогите с написанием скрипта

Добавлено: 2010-04-27 16:04:09
Alex Keda
ебанту - ф топку

Re: Люди помогите с написанием скрипта

Добавлено: 2010-04-27 17:09:39
ADRE
ставь правильный шел

Re: Люди помогите с написанием скрипта

Добавлено: 2010-04-27 17:53:38
ruslanstep1
как понят :bad: