From owner-freebsd-questions Wed Mar 22 14:33:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.can-host.com (www.can-host.com [24.215.1.6]) by hub.freebsd.org (Postfix) with ESMTP id D639237B692 for ; Wed, 22 Mar 2000 14:33:15 -0800 (PST) (envelope-from admin@cyrebels.org) Received: from cyrebels.org (185-143.cgocable.ca [24.226.185.143] (may be forged)) by www.can-host.com (8.9.3/8.9.3) with ESMTP id RAA12556; Wed, 22 Mar 2000 17:34:12 -0500 Message-ID: <38D94BD4.66B67011@cyrebels.org> Date: Wed, 22 Mar 2000 17:40:20 -0500 From: Dee Cee X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Jon ." Cc: questions@freebsd.org Subject: Re: running X apps as root... References: <20000322142808.93043.qmail@hotmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey thanks for your time... could you explain what you mean exactly by "chmod the file to make the prog suid" ? thanks! "Jon ." wrote: > >Hi! > > > >yes, i knew about the SUID prog. but i would have to open an xterm, su to > >root, then run the md, right? > >now, i dont want to keep an xterm on my deskptop, its already overloaded, > >heh > > > >would it be possible to run x windows prog as root using another way? > > > >thaks again! > > Hi, > > No, it's not the su program which just allows you to login as another user > (usually root, though you can login as others by typing su username). use > chmod to make the programs SUID. > > jon > > > > >"Jon ." wrote: > > > > > >Hey > > > > > > > >Im running windowmaker as my window m. just so you know... > > > >and i want to run programs in X under 'root'.. note that im not running > > > >X from the root acct (duh!...) > > > > > > ok......just set any progs you want to run as root with the SUID bit on > > > (make sure that they are owned by root as well, otherwise you'll just > >have > > > the permissions of whoever the file owner is) > > > > > > >thanks! > > > > > > > >oh and btw, would it be unsecure or immoral or anything to run xwindows > > > >s root...? > > > > > > yes, it's extremely insecure. i never SUID progs unless i have to, such > >as > > > in a case of a PPP dialer i have. if someone was ever to exploit a flaw > >in > > > any of the programs which you sui'd, they'd be dropped into a shell with > > > root permissions....not a nice thing. but, if it's just for home, and > >not > > > on a LAN, you don't have much to worry about...just don't make a > >practice > > > out of it. and be aware that some progs (ok, only 1 that i know of, and > > > only under linux, don't know for sure about freebsd) won't run properly > >as > > > root.....take the example of > > > xscreensaver. > > > > > > >thx! > > > >dc > > > > > > jon > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message