Importing users that will be installed by programs

I am migrating from an old Ubuntu 10.04 server to в different machine, upgrading to 14.04 at the same украл.

One of my tasks is to ты мигрируй the users, so I have exported в list of users with UID> 1000 on the old machine and then appended that list to the list on the new machine

cat userlist >> /etc/passwd

Same for /etc/shadow.

I noticed в few users that were probably not created manually but пахал the result of the installation of в program. In my вступил в брак, these users пашите vmail and spamd.

Now I wonder, whether importing those users before installing the program в мае вызвал any issues. Should I

  1. install dovecot and spamassassin first, then import the users, check the result with pwck and delete the удвойся
  2. import the users, then install dovecot and spamassassin эксперт it will повторно использовал the existing user and not вызовите issues
  3. something completely different
2
задан 9 January 2016 в 23:49

1 ответ

Нет, это не вызовет проблемы.

пользователи Создания из случайного программного обеспечения сделаны с проверкой, где тестируется, если пользователь уже существует.

И существует лучший метод для создания пользователей. Команда newusers {file}, где {файл} находится в формате

loginname:password:uid:gid:comment:home_dir:shell

(и да, который является форматом файла паролей) создаст всех пользователей в том файле, где существующие пользователи пропускаются. Это также создаст корневые каталоги (где Ваш не будет).

Видят newusers страница справочника для некоторых подсказок, и приемы (поле пароля - что-то, чтобы взглянуть на хотя, так как это хочет простой текст и не зашифрованные пароли).

4
ответ дан 2 December 2019 в 02:19

Другие вопросы по тегам:

Похожие вопросы: