PermissionError: [Errno 13] Permission denied: '/opt/bench/frappe-bench/logs/bench.log'

I did setup on my ubuntu machine. Now while daemonizing/running in background i tried to setup bench with nginx through ‘‘bench setup nginx’’. this setup did not go well i retried to run in by bench start and got this error

Any ideas what could cause this issue and how to fix.

You can try :

chmod -R o+rx /opt/bench/

or

sudo chmod -R o+rx /opt/bench/

and then execute :

bench start

Same issue
As super user it shows this

Check this :

Again permission error

sudo chmod -R 775 /opt/bench/

try it…

It worked
Thanks @Gembira_IT_Tech

also do you have any idea how to run the bench in background?

setup it to production…