1. Reboot the machine and enter the recovery mode (press ESC a few times during the startup and select Recovery Mode)
2. Execute 'visudo'. Copy the line containing 'root ...' from sudoers file replacing root with your username.
3. Save the file and root. Your username now should be allowed to run sudo command.
No comments:
Post a Comment