sudo problem

Asked by sudharsan

In my client system i have created only one user .
user name is <john>
 pw is <test>

i dont want to give admin rights to john . if he type #sudo -i the same test pw is getting access all the right . i want block admin rights for john user and how to give separate pw for user and root or sudo -i

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Boot to recovery root console and run:

chmod 0440 /etc/sudoers

Then reboot with:

reboot

Looks like you have been messing with the file so you don't need sudo to edit it...I suggest you don't as you will get this sort of thing

Revision history for this message
sudharsan (14sudharsan) said :
#2

Thank u thanks a lot ..................................
its working

Revision history for this message
sudharsan (14sudharsan) said :
#3

No Yar that problem is solved . i have one more doubt . how to add a new
user into sudo user list ??
& if i install centos in virtual machine in my system its showing this error

Unable to complete install: 'Couldn't create storage volume 'ceny.img':
'cannot create path '/var/lib/libvirt/images/ceny.img': Permission denied''

pls find my attachment

Thanks & regards
J Sudharsan

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

If you add a user to the admin group, it will be allowed to use sudo. Its that simple :)

CentOS isn't supported here. I suggest you post on a CentOS forum for that.

Revision history for this message
sudharsan (14sudharsan) said :
#5

Thanks actionparsnip, that solved my question.