From: Grigory Milev <week@altlinux.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Re: Восстановление файловой системы
Date: Wed Oct 17 19:08:01 2001
Message-ID: <87y9mafgov.fsf@pc349.belcaf.minsk.by> (raw)
In-Reply-To: <20011017182117.30b6eed8.vyt@vzljot.ru>
>>>>> "vyt" == vyt <vyt@vzljot.ru> writes:
vyt> On Wed, 17 Oct 2001 18:07:26 +0400
vyt> 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.
vyt> Если переустановка не годится, можно попробовать что-то вроде find /
vyt> -exec \/repair.sh {} \;
vyt> а в /repair.sh использовать file=$1 package=`rpm -qf $file` rpm -v
vyt> -ql $package | grep $file откуда можно выдрать права и владельца и
vyt> скормить chown и chmod.
Можно упростить задачу:
cd (Где у тебя рпмки лежат)
rpm -Fvh --force *.rpm
--
/ Grigory Milev
---
Life too beautiful and interest...
Don't worry, be happy.
prev parent reply other threads:[~2001-10-17 19:08 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 ` [mdk-re] " Vyt
2001-10-17 19:08 ` Grigory Milev [this message]
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=87y9mafgov.fsf@pc349.belcaf.minsk.by \
--to=week@altlinux.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