-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/12/2019 13.46, Carlos E. R. wrote:
On 05/12/2019 02.41, David Haller wrote:
Hello,
sudo script? I thought that was forbidden.
Just use: sudo /bin/bash script
Ah! I'll try that.
It works. /etc/sudoers: cer Telcontar = (root) /bin/bash /data/storage_b/cer/0_Cambiar_Permisos_Pictures_as_root Using it: cer@Telcontar:/data/storage_b/cer> sudo /bin/bash /data/storage_b/cer/0_Cambiar_Permisos_Pictures_as_root [sudo] password for cer: cer@Telcontar:/data/storage_b/cer> Takes its time. But currently it is a security hole, as the script is owned by me-as-user (who can edit it) and thus do anything as me-as-root
cer@Telcontar:/data/storage_b/cer> l /data/storage_b/cer/0_Cambiar_Permisos_Pictures_as_root -rwxr--r-- 1 cer users 939 Dec 4 23:02 /data/storage_b/cer/0_Cambiar_Permisos_Pictures_as_root* cer@Telcontar:/data/storage_b/cer>
- -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXelHfgAKCRC1MxgcbY1H 1bMMAKCOGEXv8g1KPTRmaMRipCtfQsjsDQCgmS6mARmEyVZ8/FF1yEM2zn6fNgs= =JOz6 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org