You are not logged in.
I am trying to create a custom action to change owner of files from root to me.
This is not working.
echo 777 | sudo -S "chown -R andy:andy %f"
Ubuntu-Mate 24.04
Offline
That's a bit scary custom action.
At least add a password dialog.
yad --form --field="":H --text="Sure you want?" | sudo -k -S chown -R andy:andy %f || yad --text="Fail"
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
That's a bit scary custom action.
At least add a password dialog.yad --form --field="":H --text="Sure you want?" | sudo -k -S chown -R andy:andy %f || yad --text="Fail"
First I typed yes and it failed.
Then my password and it failed?
This works until we can fix the "yad" statement. :-)
echo pass | sudo -k -S chown -R andy:andy %f
Last edited by fixit (2020-06-22 01:25:08)
Ubuntu-Mate 24.04
Offline
Sorry, I forgot about the separator.
yad --form --field="":H --text="Sure you want?" --separator="\n"
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
No problem. Thanks for your help.
I am impressed with all that yad can do.
yad --form --field="":H --text="Enter password." --separator="\n" | sudo -k -S chown -R andy:andy %f || yad --text="Fail" --timeout=3
Last edited by fixit (2020-06-22 16:01:22)
Ubuntu-Mate 24.04
Offline
[ Generated in 0.011 seconds, 13 queries executed - Memory usage: 529.3 KiB (Peak: 530.58 KiB) ]