To make it possible for you to use sudo, you need to add your username(s) to /etc/sudoers. As root, do:
# visudo
visudo is the recommended way to edit /etc/sudoers. You should not use anything else. If you're not familiar with vi, you might have issues editing /etc/sudoers. Check the internet for the basic visual and ex command modes.
Add below the line "root ALL=(ALL) ALL" something like this "username ALL=(ALL) ALL", so it looks likes this:
root ALL=(ALL) ALL
username ALL=(ALL) ALL
Now username can use sudo.
The next thing to do is to uncomment (remove the #) from the line '# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' so it looks like this:
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Then save and exit (:x).
That will allow username to use sudo without typing the full path for the commands.
I haven't edited anything else, but feel free to read and edit /etc/sudoers as you require.
Post last edited at