I encountered this error “-su: /var/lib/one/.one/one_auth: Permission denied”. Please anyone shed some light on the reason behind and suggest possible solutions.
su doesn’t like redirections. You could try this instead: echo "oneadmin:mypassword" | tee /var/lib/one/.one/one_auth (add -a to tee so that instead of overwriting the file, it adds the line)