Easy way to add green PWR LED

Hello - I would like to add a green LED to my Volumio instal on a PI 5 - I’d like the LED to simply illuminate when the PI is powered up and go off when shut down. Please can you tell me what code I will need to enter and if GPIO 17 is the best pin to use? cheers!

The easiest way is adding an overlay to /boot/userconfig.txt
like below, I use it on GPIO 16:
gpio=16=op,dh

Thanks but /boot/userconfig.txt results in ‘Permission denied’

Impossible,

What steps did you take?

Hi - I entered Volumio as the password and when presented with volumio@volumio : $ - after the $ I typed the script in your original reply

I didn’t give you a script??

you should do:
nano /boot/userconfig.txt

Add:
gpio=16=op,dh

Press:
ctrl + o => Enter => ctrl + x

Reboot