You are not logged in.
Pages: 1
This works in 18.04 but not in 20.04?
echo password | sudo -S chattr +i %f
Neither does this.
pkexec chattr +i %f
Last edited by fixit (2022-10-06 14:26:55)
Ubuntu-Mate 24.04
Offline
echo password | sudo -S chattr +i %f
It works here. Does your password have any special characters? If so, enclose your password in single quotes:
echo 'password' | sudo -S chattr +i %f
You can also look at ~/.xsession-errors when running the custom action to see if any error messages are generated.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thanks.
The single quotes got it to working. :-)
Ubuntu-Mate 24.04
Offline
Pages: 1
[ Generated in 0.013 seconds, 8 queries executed - Memory usage: 535.64 KiB (Peak: 536.48 KiB) ]