Download your favorite Linux distribution at LQ ISO.
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 09-12-2007, 01:43 PM   #1
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
how to provide sudo access


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

Old 09-12-2007, 02:09 PM   #2
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)


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

All times are GMT -5. The time now is 03:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration