LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 04-21-2009, 11:08 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,434
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 :
Code:
$ 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:
Code:
$ pwd
/home/joe
$ 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:
Code:
root    ALL=(ALL) ALL
I cant write :
joe ALL=(ALL) ALL

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-21-2009, 11:47 PM   #2
wet-willy
Member
 
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, 12:21 AM   #3
wet-willy
Member
 
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 --> http://www.wlug.org.nz/SudoHowto
 
  


Reply


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-23-2009 11:35 PM
Query related to sendmail problem. rajeshkerala Linux - Newbie 1 01-14-2009 11:17 PM
shell related query !!!!!!!!!!! iacharyya Linux - General 10 06-09-2008 06:39 PM
One query related libstdc++.so.5 utkarshrawat Linux - Newbie 2 05-27-2008 02:01 AM
kernel related query abhidude Linux - General 2 11-29-2004 09:09 AM


All times are GMT -5. The time now is 01:43 PM.

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