Hello world, I try to give permission to execute to some files as program.
All files begin for "UBU", are .sh and are in the same folder call "myworks".
I found this instruction but not works. Please, help.
Thanks. I try to save time. I mean, every time I have to run any script, I have to go to Properties > Permission > give permission to run as program.
I change the scripts almost every day so, I have to go one by one with the "give permission to run as program"
As I don't understand too much, I thought there is a possibility to run JUST one script with the "Properties > Permission > give permission to run as program" and then, semi-automatically, have all the others scripts prepare to run.
Thanks very much for help a Dummy like me
Asis
Thanks. I try to save time. I mean, every time I have to run any script, I have to go to Properties > Permission > give permission to run as program.
You only have to give permission once, not every time.
I change the scripts almost every day so, I have to go one by one with the "give permission to run as program"
You only have to give permission once, not every time. It stays executable even if you change the file.
As I don't understand too much, I thought there is a possibility to run JUST one script with the "Properties > Permission > give permission to run as program" and then, semi-automatically, have all the others scripts prepare to run.
Yes, and that script needs permission too ofcourse
No, you don't need that script.
You only need to set the permission once. No need to do it every time.
Permissions are permanent, until you change them yourself.
You can do that from the commandline with chmod u+x UBU*.sh
Explanation about chmod: man chmod
You can check permission with ls -l UBU*.sh
If you see something like: -rwxrw-r-- 2 asis asis 4096 nov 8 15:22 UBUfijo.sh -rwxrw-r-- 2 asis asis 4096 okt 7 13:17 UBUale.sh -rwxrw-r-- 1 asis asis 292 jan 26 2021 UBUclic.sh
it means that its permission is set executable ( you must see an 'x' in the first field)
Thanks very much. More explains by my side: I do the changes in the files by remote: I do in my computer and go to the other computer, I use Google remote desktop to "visit" the other computer. That's why lost the permission every time and have to redo.
So, I think I need the magic-script to do it once.
I hope I explain correct.
Thanks very much for help me.
Asis