Hi,

The patch allows to set the hard coded 'nobody' user
to something that eventually exists on the box
(added --with-user and --with-group (defaults to --with-user)
to configure.

If not specified they default to 'nobody' as before
Not sure about naming since I'm not very clear for what that
user is used at the first place, so I didn't open the Jira directly.


Regards
--
^TM
Index: proxy/Makefile.am
===================================================================
--- proxy/Makefile.am	(revision 891559)
+++ proxy/Makefile.am	(working copy)
@@ -367,7 +367,7 @@
 dist_version_DATA = TS_version
 
 install-exec-local:
-	$(INSTALL) -d -o nobody -g nobody $(pkglocalstatedir) $(pkglogdir) $(pkgsysconfdir) $(pkgsysconfdir)/internal
+	$(INSTALL) -d -o $(pkgsysuser) -g $(pkgsysgroup) $(pkglocalstatedir) $(pkglogdir) $(pkgsysconfdir) $(pkgsysconfdir)/internal
 	$(INSTALL) -d $(pkglibexecdir)
 
 uninstall-local:
Index: proxy/config/records.config.in
===================================================================
--- proxy/config/records.config.in	(revision 891559)
+++ proxy/config/records.config.in	(working copy)
@@ -29,7 +29,7 @@
 CONFIG proxy.config.env_prep STRING example_prep.sh
 CONFIG proxy.config.config_dir STRING @prefix@/etc/@PACKAGE@
 CONFIG proxy.config.temp_dir STRING /tmp
-CONFIG proxy.config.alarm_email STRING nobody
+CONFIG proxy.config.alarm_email STRING @pkgsysuser@
 CONFIG proxy.config.syslog_facility STRING LOG_DAEMON
 CONFIG proxy.config.cop.core_signal INT 0
 CONFIG proxy.config.output.logfile STRING traffic.out
@@ -66,7 +66,7 @@
 CONFIG proxy.config.admin.use_ssl INT 0
 CONFIG proxy.config.admin.ssl_cert_file STRING private_key.pem
 CONFIG proxy.config.admin.number_config_bak INT 3
-CONFIG proxy.config.admin.user_id STRING nobody
+CONFIG proxy.config.admin.user_id STRING @pkgsysuser@
 CONFIG proxy.config.admin.ui_refresh_rate INT 30
 CONFIG proxy.config.admin.log_mgmt_access INT 0
 CONFIG proxy.config.admin.log_resolve_hostname INT 1
Index: configure.ac
===================================================================
--- configure.ac	(revision 891559)
+++ configure.ac	(working copy)
@@ -50,6 +50,26 @@
 AC_DEFINE_UNQUOTED(BUILD_PERSON, "$build_person")
 AC_DEFINE_UNQUOTED(BUILD_MACHINE, "$build_machine")
 
+AC_ARG_WITH([user],
+  [AS_HELP_STRING([--with-user],[specify the system user])],
+  [
+  with_user="$withval"
+  ],[
+  with_user="nobody"
+  ]
+)
+
+AC_ARG_WITH([group],
+  [AS_HELP_STRING([--with-group],[specify the system group])],
+  [
+  with_group="$withval"
+  ],[
+  with_group="$with_user"
+  ]
+)
+AC_SUBST([pkgsysuser],[$with_user])
+AC_SUBST([pkgsysgroup],[$with_group])
+
 # -----------------------------------------------------------------------------
 # 2. SITE CONFIGURATION
 

Reply via email to