From: Vitaly Ostanin <vyt@vzljot.ru> To: community@altlinux.ru Subject: [Comm] Re: перенос паролей из /etc/shadow Date: Sat, 19 Apr 2003 11:31:32 +0400 Message-ID: <3EA0FB54.4090101@vzljot.ru> (raw) In-Reply-To: <20030419141516.1e977abb.mrbond@itc.nstu.ru> [-- Attachment #1: Type: text/plain, Size: 1645 bytes --] Alexei Bayguzov пишет: > On Fri, 18 Apr 2003 15:41:22 +0300 > Maxim Tyurin <mrkooll@tdr.pibhe.com> wrote: > > >>On Fri, Apr 18, 2003 at 05:16:12PM +0500, Mike Lykov wrote: >> >>>Как мне перенести пароли пользователей на новый сервер? >> >>посмотри tcb_convert, tcb_unconvert > > > Столкнулся с той же проблеммой. При переустановке сервера на мастер 2.0 по незнаию > переписал со старого сервера /etc/shadow /etc/passwd - пока оно работет и вроде без глюков, Вы, конечно, и так знаете, но на всякий случай - читайте логи :) Как-то после переезда нашёл там массу интересного про недоставленную почту из-за неправильных владельцев и отсутствия sgid на чём-то из postfix... > хотя на начальном этапе пришлось танцевать с бубном из-за съехавших групп. Если что, есть такая возможность # rpm --setugids `rpm -qa` # rpm --setperms `rpm -qa` порядок важен. > Теперь, я хотел перейти на tcb - не получается. tcb_convert пишет > # tcb_convert > /etc/tcb exists, remove it first. > > что делать? и как быть? Занесено уже часть новых пользователей. Конечно, думаю ручками это все создать. > Только вот правильно ли это будет? IMHO, нужно синхронизировать данные в /etc/passwd, /etc/tcb/*, /etc/group и правами на данные пользователей, после чего восстановить права на файлы всех пакетов в соответствии с новыми uids/gids. Можно ручками, можно скриптом по имени пользователя, но в любом случае внимательно. Вообще задача запарная - нужно, как минимум, на момент синхронизации отключить все сервисы, которые могут изменить данные пользователей. init 1 рулит :) <skipped/> -- Regards, Vyt mailto: vyt@vzljot.ru JID: vyt@vzljot.ru [-- Attachment #2: Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2003-04-19 7:31 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-04-18 12:16 [Comm] " Mike Lykov 2003-04-18 12:32 ` Andriy Dobrovol's'kii 2003-04-18 12:41 ` Maxim Tyurin 2003-04-19 7:15 ` Alexei Bayguzov 2003-04-19 7:31 ` Vitaly Ostanin [this message] 2003-04-21 4:05 ` [Comm] " Alexei Bayguzov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3EA0FB54.4090101@vzljot.ru \ --to=vyt@vzljot.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git