Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old March 3rd, 2006   #1
songo
Just Give Me the Beans!
 
songo's Avatar
 
Join Date: Feb 2006
Location: Praia, Cape Verde
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
Exclamation HOWTO add user to sudoers list

hello..

i've made 3 kubuntu installation on 3 different PC. on the last one somehow the only user (myself) is enable to become root. only through 'su'.
it goes like this (the password entered is correct and the same for 'su'):

Code:
songo@barra98:~$ sudo bash
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
songo@barra98:~$ su
Password:
root@barra98:/home/songo # sudo bash
root@barra98:/home/songo #
more... if i enter songo's password to sudo bash i get this:
Code:
songo@barra98:~$ sudo bash
Password:
songo is not in the sudoers file.  This incident will be reported.
what's the difference between su and sudo bash anyways?
tanx
__________________
Ubuntu 9.04 @ ThinkPad R61
songo is offline   Reply With Quote
Old March 3rd, 2006   #2
aysiu
HP Mini 1120nr User
 
aysiu's Avatar
 
Join Date: May 2005
Location: US
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: HOWTO add user to sudoers list

When you create the user, there are permissions the user has (go to System > Administration > Users and Groups). Make sure the new users have the same permissions as the first user you created.
__________________
tutorials | blog |
advice | more advice
aysiu is offline   Reply With Quote
Old March 3rd, 2006   #3
newuser111
Way Too Much Ubuntu
 
Join Date: Nov 2005
Beans: 297
Re: HOWTO add user to sudoers list

use visudo
newuser111 is offline   Reply With Quote
Old October 5th, 2007   #4
climbjm
5 Cups of Ubuntu
 
Join Date: Dec 2006
Location: Salt Lake City
Beans: 43
Ubuntu 7.04 Feisty Fawn
Question Re: HOWTO add user to sudoers list

So when you launch visudo, what do you do next?
What are you supposed to add?
Just the username?
climbjm is offline   Reply With Quote
Old October 5th, 2007   #5
Discov3ry
5 Cups of Ubuntu
 
Join Date: Oct 2007
My beans are hidden!
Re: HOWTO add user to sudoers list

#visudo
-put this line at the end (replace username with your username):
username ALL=(ALL) ALL
-hit ESC
-SHIFT+:
-type wq
-hit enter
Discov3ry is offline   Reply With Quote
Old October 5th, 2007   #6
climbjm
5 Cups of Ubuntu
 
Join Date: Dec 2006
Location: Salt Lake City
Beans: 43
Ubuntu 7.04 Feisty Fawn
Smile Re: HOWTO add user to sudoers list

Awesome, thank you!
And also, thank you for the vi commands too... (phew).
climbjm is offline   Reply With Quote
Old October 5th, 2007   #7
anaconda
Fresh Brewed Ubuntu
 
anaconda's Avatar
 
Join Date: Mar 2006
Beans: 1,275
Hardy Heron (Ubuntu Development)
Re: HOWTO add user to sudoers list

hmm.. I think using visudo for adding user to admin group is a bit difficult.

how about just:
sudo adduser existing_username_to_add_to_admin_group admin

And atleast in my feisty installation visudo actually opens nano... not vi
__________________
____________
anaconda
anaconda is offline   Reply With Quote
Old October 5th, 2007   #8
aysiu
HP Mini 1120nr User
 
aysiu's Avatar
 
Join Date: May 2005
Location: US
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Re: HOWTO add user to sudoers list

As far as I know, this can be done properly through the GUI (graphical user interface) by pointing and clicking in both Kubuntu and Ubuntu.

I don't see any reason (unless you want to just learn how to do it for fun) to manually edit the /etc/sudoers file.

In Ubuntu, it's System > Administration > Users and Groups. I don't remember what it is for Kubuntu.
__________________
tutorials | blog |
advice | more advice
aysiu is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:08 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry