# @configure_input@
-# $Id: Makefile.in,v 1.86 2002-07-19 19:37:01 thib Exp $
+# $Id: Makefile.in,v 1.87 2002-08-10 20:40:59 thib Exp $
# The following should not be edited manually (use configure options)
# If you must do it, BEWARE : some of the following is also defined
# do not ci automaticaly generated files and doc (done by doc's Makefile)
RCSNOCI=.*\(.html\|VERSION\|MANIFEST\|configure\|install.sh\|doc.*\)
+RUN_NON-PRIVILEGED = @RUN_NON_PRIVILEGED@
+ifeq ($(RUN_NON_PRIVILEGED), 1)
+ BINMODE=111
+else
+ BINMODE=6111
+endif
+
ifeq ($(FCRONDYN), 1)
all: fcron fcrontab fcrondyn convert-fcrontab files/fcron.conf
else
$(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 770 -d $(FCRONTABS)
$(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 110 -s fcron $(DESTSBIN)
- $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 6111 -s fcrontab $(DESTBIN)
- $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m 6111 -s fcronsighup $(DESTBIN)
+ $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m $(BINMODE) -s fcrontab $(DESTBIN)
+ $(INSTALL) -g $(ROOTGROUP) -o $(ROOTNAME) -m $(BINMODE) -s fcronsighup $(DESTBIN)
ifeq ($(FCRONDYN), 1)
- $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m 6111 -s fcrondyn $(DESTBIN)
+ $(INSTALL) -g $(GROUPNAME) -o $(USERNAME) -m $(BINMODE) -s fcrondyn $(DESTBIN)
endif
test -f $(ETC)/fcron.allow || test -f $(ETC)/fcron.deny || $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.allow $(SRCDIR)/files/fcron.deny $(ETC)
test -f $(ETC)/fcron.conf || $(INSTALL) -m 640 -o $(ROOTNAME) -g $(GROUPNAME) $(SRCDIR)/files/fcron.conf $(ETC)
vclean: clean
find ./ -name "*~" -exec rm -f {} \;
rm -f config.log config.status config.h config.cache Makefile
+ rm -fR autom4te-*
@(cd doc && make clean)
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: config.h.in,v 1.42 2002-07-19 19:39:28 thib Exp $ */
+ /* $Id: config.h.in,v 1.43 2002-08-10 20:41:11 thib Exp $ */
/* *********************************************************** */
#undef DEBUG
/* 1 if you want foreground mode by default */
#undef FOREGROUND
+#undef RUN_NON_PRIVILEGED
/* Define if we should use sete[ug]id() funcs */
#undef USE_SETE_ID
A copy of the license is included in gfdl.sgml.
-->
-<!-- $Id: faq.sgml,v 1.4 2002-07-19 19:42:53 thib Exp $ -->
+<!-- $Id: faq.sgml,v 1.5 2002-08-10 20:41:52 thib Exp $ -->
<sect1 id="faq">
<title>Frequently Asked Questions</title>
linkend="fcrontab.5">&fcrontab;(5)</link></para>
</answer>
</qandaentry>
+
+ <qandaentry>
+ <question>
+ <para>Can I run fcron without root privileges ?</para>
+ </question>
+ <answer>
+ <para>Yes, you can. To do that, see the following instructions, but
+please note that fcrondyn currently does *not* work without root privileges.</para>
+ <orderedlist>
+ <listitem>
+ <para>First, create a directory where you'll install fcron,
+ and some subdirectories :</para>
+ <screen><prompt>bash$
+</prompt> <command>mkdir /home/thib/fcron</command>
+<prompt>bash$</prompt> <command>cd /home/thib/fcron</command>
+<prompt>bash$</prompt> <command>mkdir doc man spool</command></screen>
+ </listitem>
+ <listitem>
+ <para>Then, run configure with option
+<option>--with-run-non-privileged</option>, set all user names and groups to yours,
+and set appropriately the paths :</para>
+ <screen><prompt>bash$
+</prompt> <command>./configure --with-run-non-privileged --with-rootname=thib
+--with-rootgroup=thib --with-username=thib --with-groupname=thib
+--with-etcdir=/home/thib/fcron --with-piddir=/home/thib/fcron
+--with-fifodir=/home/thib/fcron --with-spooldir=/home/thib/fcron/spool
+--with-docdir=/home/thib/fcron/doc --prefix=/home/thib/fcron</command></screen>
+ </listitem>
+ </orderedlist>
+ <para>The rest of the installation is described in the
+<link linkend="install">install file</link>.</para>
+ </answer>
+ </qandaentry>
</qandaset>
</sect1>
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: job.c,v 1.50 2002-07-19 19:30:34 thib Exp $ */
+ /* $Id: job.c,v 1.51 2002-08-10 20:37:06 thib Exp $ */
#include "fcron.h"
die_e("could not pipe()");
}
+#ifndef RUN_NON_PRIVILEGED
if (change_user(line) < 0)
return ;
+#endif
sig_dfl();