LinuxQuestions.org
Register a domain and help support LQ
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 06-19-2015, 04:42 AM   #1
anandg111
Member
 
Registered: Jan 2012
Posts: 56

Rep: Reputation: Disabled
Entry in /etc/sudoers file for group


Can i make an entry in /etc/sudoers file for the group?
I want to grant access to few commands to entire group.
 
Old 06-19-2015, 05:40 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Have you looked at it; here's a quote from within the file
Quote:
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
 
Old 06-19-2015, 05:43 AM   #3
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Xubuntu, Manjaro
Posts: 745
Blog Entries: 3

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
This is a pretty decent guide:
http://mixeduperic.com/ubuntu/how-to...on-ubuntu.html

Although instead of granting
Code:
ALL=(ALL) ALL
You may specify whihc commands the group may run, like
Code:
/bin/mount
Or whatever you want the group to be able to run.
 
  


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
Sudoers entry but still asking password sammckee Linux - General 6 05-01-2014 06:23 PM
Modify group(%admin) with username in sudoers file smilemukul Linux - Newbie 5 06-08-2012 03:39 AM
Invalid shadow group file entry camphor Linux - Software 4 05-05-2009 08:19 PM
Entry into group files (sudoers) Lazairus Linux - General 3 08-28-2008 09:05 AM
How to done entry in sudoers file??? rktech83 Linux - Security 1 03-29-2006 09:45 AM


All times are GMT -5. The time now is 08:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration