I am trying to implement a new policy for our server in that we should no longer login as root but rather sudo when we need certain commands. However the guides online don't cover everything which is leading to a very frustrating time.
Where I am at now
I created a User and was able to make sshkeys for this user
What I am unable to do is make this user be able to sudo
Code: Select all
sudo cd /root/
Password:<root password>
Sorry, try again.
Password:<user password>
Sorry, try again.
Password:<sshkey password>
Sorry, try again.
sudo: 3 incorrect password attempts
and have him access other places on the server such as
/root/ - Permission Denied
I added the following in the sudoer file
Code: Select all
user ALL=(root) ALL
after a long read but still no avail (which btw is there a need to restart some sort of sudo daemon, I restarted the whole server since I couldn't find one)
