From 6878c9a191a6a35b54d2d45bc046e76d96741cfe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 21 Jul 2009 10:47:59 +0000 Subject: [PATCH] don't create/enable X_monitor user. --- monitor-client.init | 44 ++++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/monitor-client.init b/monitor-client.init index 2b03f77..b78a3ba 100644 --- a/monitor-client.init +++ b/monitor-client.init @@ -24,26 +24,30 @@ case "$1" in ;; esac -# NOTE: If user already exists, this just exists with status 9. I think it's -# ok to simply let this command check and error out. -# Parse PLC configuration -if [ -r /etc/planetlab/plc_config ] ; then - . /etc/planetlab/plc_config -else - PLC_NAME="PlanetLab" - PLC_SLICE_PREFIX="pl" - PLC_BOOT_HOST="boot.planet-lab.org" -fi +# +# NOTE: This user is not used by monitor for the moment so better not create it. +# + +# # NOTE: If user already exists, this just exists with status 9. I think it's +# # ok to simply let this command check and error out. +# # Parse PLC configuration +# if [ -r /etc/planetlab/plc_config ] ; then +# . /etc/planetlab/plc_config +# else +# PLC_NAME="PlanetLab" +# PLC_SLICE_PREFIX="pl" +# PLC_BOOT_HOST="boot.planet-lab.org" +# fi -USER="${PLC_SLICE_PREFIX}_monitor" -/usr/sbin/useradd -p "" -m $USER &> /dev/null || : +# USER="${PLC_SLICE_PREFIX}_monitor" +# /usr/sbin/useradd -p "" -m $USER &> /dev/null || : -if [ ! -d /home/$USER/.ssh ] ; then - mkdir /home/$USER/.ssh - chmod 700 /home/$USER/.ssh - chown $USER.$USER /home/$USER/.ssh -fi +# if [ ! -d /home/$USER/.ssh ] ; then +# mkdir /home/$USER/.ssh +# chmod 700 /home/$USER/.ssh +# chown $USER.$USER /home/$USER/.ssh +# fi -URL="http://${PLC_BOOT_HOST}/PlanetLabConf/keys.php?$USER" -curl -s "$URL" > /home/$USER/.ssh/authorized_keys -chown $USER.$USER /home/$USER/.ssh/authorized_keys +# URL="http://${PLC_BOOT_HOST}/PlanetLabConf/keys.php?$USER" +# curl -s "$URL" > /home/$USER/.ssh/authorized_keys +# chown $USER.$USER /home/$USER/.ssh/authorized_keys -- 2.47.0