Vanilla List Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [VANILLA-LIST:2475] Help with Linux shell init scripts
Bob Tanner writes:
>
> If you look at the Vanilla.spec, you will see I have
> /etc/rc.d/init.d/netrek, which will use chkconfig --add on post
> install and a chkconfig --del on post uninstall. So, the run level
> stuff is done. I plan to test it tonight.
So you want the default way people run a server to be as root on boot?
**shudder**
Not that I can think of any specific security holes (if I'd thought of
one, I'd be sending a patch), but it's just Not A Good Idea to run stuff
as root which doesn't have a very good reason for being so.
We'll get blasted by the freshmeat crowd for lame graphics etc, but
that's ok - let's not provide people with legitimate reasons to flame.
> I am still thinking about how to run updated, should we do it via
> cron, like on continuum, or should we go for the
> updated-self-running-simulating-cron mode?
From a sysadmin standpoint, make an account "netrek", and use a cron
job. FWIW, this is the mode in which bigbang ran as well.
.spec files are well equipped for setting this up. If a netrek account
doesn't already exist, then the pre-install scripts can create one, and
the files can all be "%attr(555,netrek,netrek)" in the specfile.
I'm not sure if a default install should activate the cron scripts or
not.
Alec
--
Alec Habig, Boston University Particle Astrophysics Group
habig@budoe.bu.edu
http://hep.bu.edu/~habig/