Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

CentOS - user not allowed to run sudo

$
0
0

Hello,

I have created a CentOS box ( a few times now) and each time I have issues with sudo. Essentially after the first logon I am blocked from running sudo. I have this issue with the default user (azureuser) and one I created (HSCICAdmin). Both come back saying<user> is not allowed to run sudo on <host>.

I have added both users to the sudoers file 



After the first 'failure' I did set a root password and can change to root. The odd thing I see is that if I edit sudoers remove the users, add them back in, then I can sudo. However if I logout and back in I lose the rights. The box is vanilla, there are no additional services, other than tigerVNC running, that could be messing with the file.

The rights are correct, so far as I can see

I am a LINUX noob so short simple answers using single syllable words would be appreciated! ;-)

Cheers,

Richard


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>