From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Результат клонирования :-(
Date: Wed, 11 Aug 2004 17:44:34 +0400
Message-ID: <20040811134434.GC15860@master.mivlgu.local> (raw)
In-Reply-To: <20040811162654.5e0b9407.dov@media-link.info>
[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]
On Wed, Aug 11, 2004 at 04:26:54PM +0300, Dolgov OV wrote:
> On Wed, 11 Aug 2004 17:18:21 +0400
> Sergey Vlasov <vsu@altlinux.ru> wrote:
>
> > On Wed, Aug 11, 2004 at 04:04:21PM +0300, Dolgov OV wrote:
> > > Подключил оба винта мастерами (hda - новый, hdc - старый),
> > > загрузился с первого cd Master-2.2 в rescue режиме, подмонтировал
> > > оба раздела в соседние папки /mnt/hda и /mnt/hdc
> > >
> > > # cd /mnt/hdc
> > > #tar -cf - ./* | tar -xf - -C /mnt/hda
> >
> > Во втором вызове tar ещё нужна была опция -p - без неё права доступа
> > восстанавливаются не полностью.
> >
> > Для файлов из пакетов можно найти несоответствия с помощью rpm
> > --verify и исправить с помощью rpm --setperms (и rpm --setugids, хотя
> > в данном случае это не понадобится - tar без -p ставит uid/gid
> > нормально, обрезаются только права доступа по umask).
>
> Тоесть это всетаки проблемы с правами? Значит делать
> rpm -qa > rpmlist.txt
> Собирать все эти пакеты в одну папку и
> rpm --verify --setperms *
Ничего собирать в папку не надо - должно пройти rpm --setperms --all
(права берутся из базы в /var/lib/rpm, а не из файлов пакетов; выполняться
будет очень долго - там генерируется скрипт с вызовом chmod отдельно для
каждого файла). Только после этого слетят, в частности, все установки,
сделанные через control (например, перестанет работать su - в пакете по
умолчанию стоит restricted).
Можно попробовать сделать сначала rpm --verify --all | tee verify.log и
посмотреть вывод, чтобы оценить масштаб проблемы (заодно обнаружатся и
файлы с изменившимся содержимым - на битом диске вполне могло получиться и
такое).
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-08-11 13:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-11 13:04 Dolgov OV
2004-08-11 13:18 ` Sergey Vlasov
2004-08-11 13:26 ` Dolgov OV
2004-08-11 13:44 ` Sergey Vlasov [this message]
2004-08-12 9:48 ` Dolgov OV
2004-08-12 11:24 ` Andrey Rahmatullin
2004-08-12 11:21 ` Dolgov OV
2004-08-12 11:44 ` Sergey Vlasov
2004-08-11 13:51 ` Andrey Rahmatullin
2004-08-12 19:39 ` Re[2]: " Andrew
2004-08-11 15:30 ` [Comm] " Michael Shigorin
2004-08-12 5:24 ` Yakov Hrebtov
2004-08-12 6:00 ` Michael Shigorin
2004-08-12 8:08 ` Dolgov OV
2004-08-12 10:34 ` Michael Shigorin
2004-08-12 11:22 ` Alexei Takaseev
2004-08-12 14:25 ` [Comm] " Dolgov OV
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=20040811134434.GC15860@master.mivlgu.local \
--to=vsu@altlinux.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