Share this post

Link to post

Share on other sites

Depends - but if this is a script that runs on a period basis, add it to root's crontab, and don't mess with sudo in the first place...

The root account is normally disabled on many distro's, but one can enable it by setting a secure password (sudo passwd root)﻿

Thank you for your help. The script not runs on a period basis, i can not put in crontab. I know that my script not is the correct solution but I can not change it in this moment, I would like remove the messages in auth.log, I don´t understand why my solution works in rasperry pi with raspbian but not in ARMBIAN 5.65 (OrangePi+ 2E).