Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Sudo Not Working
PostPosted: Thu Jan 03, 2008 10:21 am 
Offline
Newbie

Joined: Thu Jan 03, 2008 9:55 am
Posts: 2
Hi,

I'm having trouble getting sudo working correctly on my Ubuntu 7.10 linode.

If I log in as my non-root user and try something like:

Code:
sudo nano


I'm prompted for my root password which I enter, and then I'm simply returned to the prompt again (whereas I'd expect nano to open).

To troubleshoot, this is what I then did:

By default there didn't seem to be an admin group, so I added one as root:

Code:
addgroup --system admin


I then added my user to the admin group.

Code:
useradd -g myusername admin


But sudo still behaves in the same way.

Can anyone help me with this?

Thanks.


Last edited by sasserstyl on Thu Jan 03, 2008 10:31 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu Jan 03, 2008 10:31 am 
Offline
Junior Member

Joined: Fri Sep 12, 2003 10:10 am
Posts: 33
1) sudo wants your user's password, not root's password.

2) is you user listed in /etc/sudoers? use visudo to edit. (for more info: man sudoers)


Top
   
 Post subject:
PostPosted: Thu Jan 03, 2008 10:35 am 
Offline
Newbie

Joined: Thu Jan 03, 2008 9:55 am
Posts: 2
Thanks aaron.

Adding my username to the /etc/sudoers file worked a treat.

Thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group