Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 May 1998 12:56:01 -0700
From:      Studded <Studded@san.rr.com>
To:        djv@bedford.net
Cc:        Kevin Rooney <Kevin_Rooney@sw.cc.va.us>, freebsd-questions@FreeBSD.ORG
Subject:   Re: IRCU2 and rc.local
Message-ID:  <355211D1.9804CEF3@san.rr.com>
References:  <199805071655.MAA19700@castor.loco.net>

next in thread | previous in thread | raw e-mail | index | archive | help
CyberPeasant wrote:
> 
> Kevin Rooney wrote:
> > It seems the IRCU2 server will only start with setuid someone other than
> > root.  How do I write rc.local to automatically change the user who starts
> > it at startup time?
> 
> Two ways:
>         su username -c "command to be executed by shell"
> or
>         make ircu2 suid to the user in question. As root, do:
>                 chown username.usergroup name-of-executable
>                 chmod u+s name-of-executable.
> 
> The latter method may break things, and introduce unanticipated problems,
> especially relating to security. 

	Yes, your first method is definitely the way to go. NEVER EVER start an
irc server as root, you're just *begging* to be hacked if you do.

Doug
-- 
***         Chief Operations Officer, DALnet IRC network       ***
*** Proud designer and maintainer of the world's largest Internet
***    Relay Chat server with 5,328 simultaneous connections.
*** Try spider.dal.net on ports 6662-4    (Powered by FreeBSD)

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?355211D1.9804CEF3>