Scenario: You’re trying to execute a command with sudo:
$sudo ./utstart install We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for www-data: www-data is not in the sudoers file. This incident will be reported.
Adding a user to sudoers:
usermod -a -G sudo username
usermod -a -G sudo www-data
Note that sudo rights will not be enabled for any users currently logged in. They will need to logout before they can use sudo to gain root rights.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.