summaryrefslogtreecommitdiffstats
path: root/server/bin/setsmbpass
diff options
context:
space:
mode:
Diffstat (limited to 'server/bin/setsmbpass')
-rwxr-xr-xserver/bin/setsmbpass13
1 files changed, 9 insertions, 4 deletions
diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass
index 2d340c64..cba6f1ea 100755
--- a/server/bin/setsmbpass
+++ b/server/bin/setsmbpass
@@ -56,12 +56,17 @@ if [ -r $CLIENTINITRD ]; then
sed -i "s/OPTIONS=\(.*\)user=\w*\(.*\)pass=\w*\(.*\)/OPTIONS=\1user=$SAMBAUSER\2pass=$SAMBAPASS\3/" scripts/ogfunctions
# TEMPORAL: solución ticket 554, actualizar cliente en caché (ogLive r3257).
sed -i "s/busybox reboot/reboot/" scripts/ogfunctions
- # Ticket 565, preparar acceso Rsync.
- echo "$SAMBAUSER:$SAMBAPASS" > etc/rsync.secrets
- chown root.root etc/rsync.secrets
- chmod 400 etc/rsync.secrets
# FIN CÓDIGO TEMPORAL.
+ # Ticket 565, preparar acceso Rsync cliente.
+ echo "$SAMBAPASS" > etc/passrsync
+ chown root.root etc/passrsync
+ chmod 400 etc/passrsync
+ # Generar Initrd del cliente.
find . | cpio -H newc -oa | gzip -9c > $CLIENTINITRD
+ # Ticket 565, preparar acceso Rsync servidor.
+ echo "$SAMBAUSER:$SAMBAPASS" > /etc/rsyncd.secrets
+ chown root.root /etc/rsyncd.secrets
+ chmod 600 /etc/rsyncd.secrets
else
echo "$PROG: Aviso: no se ha modificado la clave del cliente."
fi