Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2000 15:48:11 -0700 (MST)
From:      "Small, but frustrating." <kunze@CS.ColoState.EDU>
To:        Dee Cee <admin@cyrebels.org>
Cc:        "Jon ." <los_alamos@hotmail.com>, questions@FreeBSD.ORG
Subject:   Re: running X apps as root...
Message-ID:  <Pine.GSO.4.20.0003221546580.14358-100000@mcferrin.cs.colostate.edu>
In-Reply-To: <38D94BD4.66B67011@cyrebels.org>

next in thread | previous in thread | raw e-mail | index | archive | help
you need to use 'chmod 4XXX file' where XXX is the file permissions you
want.

'man chmod' explains with much more detail

[this space irrationally left blank]

matt kunze

On Wed, 22 Mar 2000, Dee Cee wrote:

> 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
> 



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?Pine.GSO.4.20.0003221546580.14358-100000>