From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 4 Nov 2002 21:59:30 +0300 From: "Alexey I. Froloff" To: ALT Devel discussion list Subject: Re: [devel] Re: [sisyphus] Re: root warning Message-ID: <20021104185930.GA14713@hell.devel.altlinux.ru> Mail-Followup-To: ALT Devel discussion list References: <20021101073209.GK18298@hell.immo> <20021104115549.GM17548@osdn.org.ua> <20021104121605.GE1648@basalt.office.altlinux.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20021104121605.GE1648@basalt.office.altlinux.ru> User-Agent: Mutt/1.4i Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit 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. --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9xsOSVqT7+fkT8woRAhQnAKCdIEf7d1gNUdeQl2Qr5ctRZOhr7gCgtiY8 I6VQq23RA+lkCLxscqQ/uaM= =/Mju -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--