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 09-12-2007, 02:43 PM   #1
mokku
Member
 
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
how to provide sudo access


Hi,

How to provide sudo access to regular account? Please help me.

thanks
 
Old 09-12-2007, 03:09 PM   #2
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
You need to edit the /etc/sudoers file by using the command visudo (this will put you in a vi editor, it's possible to use other editors, but this way keeps you from editing it in a way that will break sudo).

For example I have sudo only working for specified commands this (note this is all one line, with a space for nopassword options:
andy ALL=/bin/mount,/bin/umount,/usr/bin/pacman,/usr/sbin/hibernate,/opt/kde/bin/knetworkmanager, NOPASSWD: /sbin/halt,/sbin/reboot

If you have the line that looks like this
%wheel ALL=(ALL) ALL
it will allow anybody that's in the wheel group to use sudo for all commands (similar to what ubuntu has for the original user)
 
  


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
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 02:36 AM
Please help. Sudo access problem gneeot Ubuntu 5 11-17-2006 12:51 PM
open_basedir - how do I provide limited access to other directories? benbroad Linux - Software 4 12-08-2004 07:07 AM
Sudo access to particular directories angrybeaver Linux - Software 0 09-23-2004 02:39 AM
Install a Red Hat 9 Server for Intranet & To provide Internet Access jimmax777 Red Hat 2 09-02-2003 09:45 AM


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

Main Menu
Advertisement
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