Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2000 17:40:20 -0500
From:      Dee Cee <admin@cyrebels.org>
To:        "Jon ." <los_alamos@hotmail.com>
Cc:        questions@freebsd.org
Subject:   Re: running X apps as root...
Message-ID:  <38D94BD4.66B67011@cyrebels.org>
References:  <20000322142808.93043.qmail@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38D94BD4.66B67011>