Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-22-2009, 12:08 AM   #1
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Query related to sudo?

Hello Guys,
I have Ubuntu 8.10 running on my HP Proliant. I have created a user with name "tux" during the installation.Whenever I need to perform any action I just provide :
$ sudo /etc/init.d/networking restart
This ask me for password and it goes fine.

Now I have created a user called joe. Now when i perform any operation it says:
$ pwd
$ sudo fdisk -l
[sudo] password for joe:
joe is not in the sudoers file.  This incident will be reported.
Now I know that we need make entry for joe in sudoers. I cant give him root permission as:
root    ALL=(ALL) ALL
I cant write :

I have been using Red Hat for long time. Just want to know what exact entry I should make for this user if I want to give him specific permission.
Old 04-22-2009, 12:47 AM   #2
Registered: Dec 2008
Posts: 44

Rep: Reputation: 17
Go to System/Administration/Users_And_Groups and hit the Unlock button as tux, enter tux password. Tux belongs to the admin group. Here you can add a new user, this may be where you may have added joe. Highlight joe and hit properties/user_priviledges and put a check in the box next to "Administer system".
Although I have not tried this, you probably do not have to add anything in /etc/sudoers for joe as there is already an entry for those belonging to the admin group.
Old 04-22-2009, 01:21 AM   #3
Registered: Dec 2008
Posts: 44

Rep: Reputation: 17
Also, to edit the /etc/sudoers file, issue command:$ sudo visudo

To only allow this new user certain privileges instead of admin powers, look at section "Only allowing a user to run a particular command" in this howto -->


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Query related to Git? your_shadow03 Linux - Newbie 10 04-24-2009 12:35 AM
Query related to sendmail problem. rajeshkerala Linux - Newbie 1 01-15-2009 12:17 AM
shell related query !!!!!!!!!!! iacharyya Linux - General 10 06-09-2008 07:39 PM
One query related utkarshrawat Linux - Newbie 2 05-27-2008 03:01 AM
kernel related query abhidude Linux - General 2 11-29-2004 10:09 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration