From: Vyt <vyt@vzljot.ru>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: Восстановление файловой системы
Date: Wed Oct 17 18:21:01 2001
Message-ID: <20011017182117.30b6eed8.vyt@vzljot.ru> (raw)
In-Reply-To: <3BCD909E.42C80843@zmail.ru>
On Wed, 17 Oct 2001 18:07:26 +0400
cornet <cornet@zmail.ru> wrote:
> Alex Savvin wrote:
> >
> > Здравствуйте!
> >
> > В результате ошибки в скрипте, запущенного из-под рута,
> нарушились пермишены и владельцы во всей
> > файловой системе (команды chmod -R ; chown -R )
> >
> > Существует ли способ быстрого восстановления атрибутов или
> нужно все перелопачивать вручную?
>
>
> Уййййёёёё!! А вот это вилы! Мои соболезнования :-((
>
> Для начала что бы просто работало можно сделать
> # chmod -R 0777 /
> # chown -R root.root /
> но о безопасности при этом придется забыть, фактически Вы
> окажетесь на FAT16.
>
> Далее могу предложить только 3 путя
> 1. переинсталляция системы
> 2. правка ВСЕГО ручками
> 3. Пройтись по пакетам rpm выдрать от туда cpio имиджи,
> раскрыть
> их и посмотреть какие там пермишены у файлов.
>
> Я бы на Вашем месте выбрал вариант N1.
Если переустановка не годится, можно попробовать что-то вроде
find / -exec \/repair.sh {} \;
а в /repair.sh использовать
file=$1
package=`rpm -qf $file`
rpm -v -ql $package | grep $file
откуда можно выдрать права и владельца и скормить chown и chmod.
В общем, автоматизировать можно, только потренируйтесь сначала
где-нибудь в ~/tmp.
<skipped>
--
Regards, Vyt
mailto: vyt@vzljot.ru
JID: vyt@jabber.org
next prev parent reply other threads:[~2001-10-17 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-17 17:44 [mdk-re] " Alex Savvin
2001-10-17 18:05 ` [mdk-re] " cornet
2001-10-17 18:21 ` Vyt [this message]
2001-10-17 19:08 ` [mdk-re] " Grigory Milev
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=20011017182117.30b6eed8.vyt@vzljot.ru \
--to=vyt@vzljot.ru \
--cc=mandrake-russian@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