diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-06-07 11:16:31 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-06-07 11:16:31 +0200 |
commit | 6a2bd870329061679618e23ddb13164018c1de06 (patch) | |
tree | 74b982d1d6ed3eb09472054d84d0ad95f097faae /server | |
parent | 3b5c09aa536eb11ef6e24edfef8b8bebf1e8613c (diff) |
#914: Removing redundant permissions.
Diffstat (limited to 'server')
-rwxr-xr-x | server/bin/setsmbpass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/setsmbpass b/server/bin/setsmbpass index 2162b3be..4d91973d 100755 --- a/server/bin/setsmbpass +++ b/server/bin/setsmbpass @@ -105,7 +105,7 @@ for OGLIVE in $LIST; do done if [[ $CHANGES != 0 ]]; then # Ticket 565, preparar acceso Rsync servidor. - echo "$SAMBAUSER:$SAMBAPASS" > /etc/rsyncd.secrets + sed -i -n -e "/^$SAMBAUSER:/!p" -e "$ a$SAMBAUSER:$SAMBAPASS" /etc/rsyncd.secrets chown root.root /etc/rsyncd.secrets chmod 600 /etc/rsyncd.secrets # Cambiar clave Samba. |