LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 04:40 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 04:43 AM   #3
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:58 AM.

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
Open Source Consulting | Domain Registration