Jump to content

DHCPD3 issues


Pwnd2Pwnr

Recommended Posts

OK... setting up a new dhcpd3 to establish an ad-hoc to airbase-ng... trivial, right? Well, I am setting it up on ubuntu, and when I get to this step

dhcpd3 -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcp3-server/dhcpd.pid at0

No command 'dhcpd3' found, did you mean:

Command 'dhcpd' from package 'isc-dhcp-server' (main)

Command 'dhcpd' from package 'isc-dhcp-server-ldap' (universe)

Command 'dhcpcd3' from package 'dhcpcd' (universe)

dhcpd3: command not found

I have configured the .conf file and am assuming that since I am not a BT distro; it has issues... can anyone help..?

Link to comment
Share on other sites

tried dhcp3d vs dhcpd3? or just type dhc and hit the tab key few times for auto complete, should list all dhcXXXXX commands available, or you need dhcp3 installed. There are two different dhcp daemons that I know of,. dhcpd and dhcp3d(I think). Might have misspelled it using "dhcpd3" vs "dhcp3d". I forget which is the correct one, but you might be right with dhcpd3. I'd have to open Backtrack and try it. Either that or the service isn't started/setup properly? http://pastebin.com/ixM6EZT8/

Also, dumb question, tried it with sudo vs by itself?

Edited by digip
Link to comment
Share on other sites

yeah... I have tried sudo; even sudo su for some super root... nothing... I will give it a shot; never thought setting up dhcpd3 would be such a pain in the ass... especially when I checked syntax about a million times just to be sure there was no typos...

I will get back with ya...

*update*

Tried the dhcpd without the 3... and now I get this lovely message:

dhcpd -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0

drop_privileges: could not set group id: Operation not permitted

Now, with sudo;

sudo dhcpd -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0

Internet Systems Consortium DHCP Server 4.1-ESV-R4

Copyright 2004-2011 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

Can't open /etc/dhcp3/dhcpd.conf: Permission denied

Now, with SU:

dhcpd -cf /etc/dhcp3/dhcpd.conf -pf /var/run/dhcpd/dhcpd.pid at0

Internet Systems Consortium DHCP Server 4.1-ESV-R4

Copyright 2004-2011 Internet Systems Consortium.

All rights reserved.

For info, please visit https://www.isc.org/software/dhcp/

Can't open /etc/dhcp3/dhcpd.conf: Permission denied

Why is permission being denied? Hmmmmm...

Edited by Pwnd2Pwnr
Link to comment
Share on other sites

1 - Is the service started

2 - Who owns the conf file, and does it need to be executable, or set to a specific users group or need its own user with less than root privlileges (chmod+x ? - that i have no clue about)

Seems some more documentation reading is in order.

One thing you can do, is compare ownership and permission settings, for say, either a live disc with the same software, or another system with the same software that has it working already, ie: backtrack.

Edited by digip
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...