[devel] Re: [sisyphus] Re: root warning

Alexey I. Froloff raorn на binec.ru
Пн Ноя 4 21:59:30 MSK 2002


On Mon, Nov 04, 2002 at 03:16:05PM +0300, Dmitry V. Levin wrote:
> On Mon, Nov 04, 2002 at 01:55:49PM +0200, Michael Shigorin wrote:
> > > http://www.lrn.ru/index.php?module=gallery&action=thread&imgid=817
> > > Может стОит такое в системные xinitrc прописать?
> > Definitely.
> Можно запускать такую программу непосредственно перед WM.
> Volunteers?
Что-то типа:

=== Cut ===
#! /bin/sh

if [ `id -u` -eq 0 ]; then
    xmessage -buttons Continue:0,Exit:2 -default Exit "You are trying to run X as root
    
This is difeniteley BAD idea,
since you can damage something
and nothing will stop you.

Click 'Continue' if you really
know what you are doung.
Otherwise, click 'Exit' and read
your fine mnual about creating
unpriviledged user accounts."

    if [ $? -eq 0 ]; then
	exit 0
    else
	exit 1
    fi
fi
exit 0
=== Cut ===

-- 
Regards,
Sir Raorn.
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: отсутствует
Url     : http://lists.altlinux.org/pipermail/devel/attachments/20021104/72ede0da/attachment.bin 


Подробная информация о списке рассылки Devel