LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-10-2014, 11:28 AM   #1
cnieland
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Rep: Reputation: Disabled
DHCP and DNS


Is there a way to make a specific user to have privileges to make changes to dhcpd and bind in Centos. I am using another program to make changes to my DHCP and DNS server but I don't want to put my root username and password on that device.
 
Old 09-10-2014, 12:26 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,886

Rep: Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258
Quote:
Originally Posted by cnieland View Post
Is there a way to make a specific user to have privileges to make changes to dhcpd and bind in Centos. I am using another program to make changes to my DHCP and DNS server but I don't want to put my root username and password on that device.
You can do it one of two ways. Either give a 'regular' user sudo rights to just run some commands (like "vi /etc/dhcpd.conf"), or install Webmin, and just give that user access to just those modules.
 
Old 09-10-2014, 01:33 PM   #3
cnieland
LQ Newbie
 
Registered: Sep 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Is there a decent guide on how to set up sudo user for dhcpd?
 
Old 09-10-2014, 03:05 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,886

Rep: Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258Reputation: 4258
Quote:
Originally Posted by cnieland View Post
Is there a decent guide on how to set up sudo user for dhcpd?
No, because that's not what SUDO is. SUDO is a mechanism to allow a regular user to have elevated privileges for some command(s). So, as said, set up that one use to ONLY have rights to run some commands, like "vi /etc/dhcpd.conf", or whatever else you'd like them to be able to do. From there, they just have to type in "sudo <command name>", and it works. They can't do ANYTHING else as root, and all use of those commands would be tied back to the user in the sudo logs.

There are many threads on here that deal with setting up sudo to just run certain commands...take a quick search, and I'm sure you'll find them. And again, if you set up webmin, you can give access to only the DHCP and DNS modules to certain users, and do the same thing, only through a web browser GUI.
 
  


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
DNS client will not resolve when DHCP DNS entry exists kasl33 Linux - Server 2 08-24-2014 08:01 PM
How do I perform maintenance on a master DNS/DHCP (BIND9/ISC-DHCP) Ubuntu server? Sniperm4n Linux - Server 2 09-09-2013 01:19 PM
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
DHCP autoupdate DNS failing to update reverse DNS ScottChapman Linux - Networking 0 12-20-2008 07:42 PM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 10:40 AM


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