From 9febdae58d5378e2925aa3e37e6010df1d55f27d Mon Sep 17 00:00:00 2001 From: q3aql Date: Thu, 27 Dec 2018 09:17:16 +0100 Subject: [PATCH] Se corrige fallo al asignar usuario --- Makefile | 2 +- src/easy-samba | 9 +++++---- src/easy-samba-gtk | 9 +++++---- src/easy-samba-gtk-admin | 8 ++++---- 4 files changed, 15 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 22a2a0d..b39dc14 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ################################################# -# Instalar easy-samba 1.6.1 (q3aql) # +# Instalar easy-samba 1.6.2 (q3aql) # ################################################# PREFIX=/usr diff --git a/src/easy-samba b/src/easy-samba index 62a4aa4..504cc1f 100755 --- a/src/easy-samba +++ b/src/easy-samba @@ -2,13 +2,13 @@ ############################################################## # Crear carpetas compartidas en Linux # -# U. Modificacion: 26-07-2018 # +# U. Modificacion: 27-12-2018 # # Autor: q3aql # -# Contacto: q3aql@openmailbox.org # +# Contacto: q3aql@protonmail.ch # # Licencia: GPL v2.0 # ############################################################## -VERSION="1.6.1" -M_DATE="260718" +VERSION="1.6.2" +M_DATE="271218" # Parametros globales linuxSambaFolder="/opt/easy-samba" @@ -337,6 +337,7 @@ function newFolderForUser() { echo -n "* Pulsa INTRO para continuar... " ; read continue else chmod 755 -R ${linuxSambaFolder}/${folder} + chown ${forUser} -R ${linuxSambaFolder}/${folder} echo "[${folder}]" >> ${sambaConfig} echo "# Folder to ${linuxSambaFolder}/${folder} # 00bc00" >> ${sambaConfig} echo "path = ${linuxSambaFolder}/${folder}" >> ${sambaConfig} diff --git a/src/easy-samba-gtk b/src/easy-samba-gtk index 1445828..0808099 100755 --- a/src/easy-samba-gtk +++ b/src/easy-samba-gtk @@ -2,13 +2,13 @@ ############################################################## # Crear carpetas compartidas en Linux (GTK) # -# U. Modificacion: 26-07-2018 # +# U. Modificacion: 27-12-2018 # # Autor: q3aql # -# Contacto: q3aql@openmailbox.org # +# Contacto: q3aql@protonmail.ch # # Licencia: GPL v2.0 # ############################################################## -VERSION="1.6.1 (GTK)" -M_DATE="260718" +VERSION="1.6.2 (GTK)" +M_DATE="271218" # Parametros globales linuxSambaFolder="/opt/easy-samba" @@ -311,6 +311,7 @@ function newFolderForUser() { zenity --title "easy-samba ${VERSION} (${M_DATE})" --error --width=330 --text "Error: No existe el usuario especificado!" else chmod 755 -R ${linuxSambaFolder}/${folder} + chown ${forUser} -R ${linuxSambaFolder}/${folder} echo "[${folder}]" >> ${sambaConfig} echo "# Folder to ${linuxSambaFolder}/${folder} # 00bc00" >> ${sambaConfig} echo "path = ${linuxSambaFolder}/${folder}" >> ${sambaConfig} diff --git a/src/easy-samba-gtk-admin b/src/easy-samba-gtk-admin index c4d9b6b..8ff19cc 100755 --- a/src/easy-samba-gtk-admin +++ b/src/easy-samba-gtk-admin @@ -2,13 +2,13 @@ ############################################################## # Crear carpetas compartidas en Linux (GTK) # -# U. Modificacion: 26-07-2018 # +# U. Modificacion: 27-12-2018 # # Autor: q3aql # -# Contacto: q3aql@openmailbox.org # +# Contacto: q3aql@protonmail.ch # # Licencia: GPL v2.0 # ############################################################## -VERSION="1.6.1 (GTK)" -M_DATE="260718" +VERSION="1.6.2 (GTK)" +M_DATE="271218" # Enlace con gksudo,gksu o bessu a easy-samba-gtk function showRootMessage() {