Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

dnsmasq error

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
rpmohn
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Tue Aug 26, 2003 3:59 pm
Location: Vermont
Contact:
Contact rpmohn
Website

dnsmasq error

  • Quote

Post by rpmohn » Sun Dec 14, 2008 5:57 pm

I had dnsmasq running on my server for a long time, but now it won start from init.d. I get the following error message:

Code: Select all

 $ /etc/init.d/dnsmasq start
 * Starting dnsmasq ...

dnsmasq: setting capabilities failed: Operation not permitted                                         [ !! ]
Same error when I try to run dnsmasq straight from the command line, however, if I run it in debug mode, it works great:

Code: Select all

 $ dnsmasq -d
dnsmasq: started, version 2.45 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-ISC-leasefile no-DBus I18N no-TFTP
dnsmasq: DHCP, IP range 192.168.0.50 -- 192.168.0.150, lease time 12h
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 68.87.73.242#53
dnsmasq: using nameserver 68.87.71.226#53
dnsmasq: read /etc/hosts - 5 addresses
Please help!

Thanks! -Ross
Top
tutaepaki
Apprentice
Apprentice
Posts: 279
Joined: Tue Nov 11, 2003 2:29 am
Location: New Zealand

  • Quote

Post by tutaepaki » Sun Dec 14, 2008 11:48 pm

looks like you're not starting it as root? you need to do that for it to work properly. It would normally switch to user nobody once it's done with it's startup - that bit is probably failing coz you're not root.

It works with -d because that disables the switch user bit
Top
rpmohn
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Tue Aug 26, 2003 3:59 pm
Location: Vermont
Contact:
Contact rpmohn
Website

  • Quote

Post by rpmohn » Sun Dec 14, 2008 11:51 pm

tutaepaki wrote:looks like you're not starting it as root? you need to do that for it to work properly. It would normally switch to user nobody once it's done with it's startup - that bit is probably failing coz you're not root.

It works with -d because that disables the switch user bit
Good idea, but I'm definitely logged in as root when I'm trying all this :( . Any other idea?
Top
gentoo-dev
Apprentice
Apprentice
Posts: 172
Joined: Tue Jan 24, 2006 11:29 am

  • Quote

Post by gentoo-dev » Mon Dec 15, 2008 11:42 am

rpmohn wrote:Good idea, but I'm definitely logged in as root when I'm trying all this
According to your prompt, you're not.
Top
rpmohn
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Tue Aug 26, 2003 3:59 pm
Location: Vermont
Contact:
Contact rpmohn
Website

  • Quote

Post by rpmohn » Mon Dec 15, 2008 1:37 pm

gentoo-dev wrote:
rpmohn wrote:Good idea, but I'm definitely logged in as root when I'm trying all this
According to your prompt, you're not.
OK, if you want to see the full cut-n-paste, here it is:

Code: Select all

root@porcupine ~ $ dnsmasq

dnsmasq: setting capabilities failed: Operation not permitted
root@porcupine ~ $ dnsmasq -d
dnsmasq: started, version 2.45 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt no-ISC-leasefile no-DBus I18N no-TFTP
dnsmasq: DHCP, IP range 192.168.0.50 -- 192.168.0.150, lease time 12h
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 68.87.73.242#53
dnsmasq: using nameserver 68.87.71.226#53
dnsmasq: read /etc/hosts - 5 addresses
For now, I'm running 'dnsmasq -d &' just so that I can work, but I really want to fix this! :(
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Mon Dec 15, 2008 2:40 pm

Didi you emerged/unmerged sys-libs/libcap-2.11 recently (POSIX capabilities) ? Or maybe some other libs, therefore I'd advice a "revdep -- --ask".
Top
rpmohn
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Tue Aug 26, 2003 3:59 pm
Location: Vermont
Contact:
Contact rpmohn
Website

  • Quote

Post by rpmohn » Mon Dec 15, 2008 3:46 pm

toralf wrote:Didi you emerged/unmerged sys-libs/libcap-2.11 recently (POSIX capabilities) ? Or maybe some other libs, therefore I'd advice a "revdep -- --ask".
That's possible -- I'll try it when I get home tonight. Thanks -Ross
Top
rpmohn
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Tue Aug 26, 2003 3:59 pm
Location: Vermont
Contact:
Contact rpmohn
Website

  • Quote

Post by rpmohn » Tue Dec 16, 2008 1:53 pm

rpmohn wrote:
toralf wrote:Didi you emerged/unmerged sys-libs/libcap-2.11 recently (POSIX capabilities) ? Or maybe some other libs, therefore I'd advice a "revdep -- --ask".
That's possible -- I'll try it when I get home tonight. Thanks -Ross
Alas, revdep-rebuild turned up nothing :( . I did not have sys-libs/libcap installed, so I tried it, but that didn't help either; exact same response :( .

Any other ideas? Please??
Thanks -Ross
Top
Post Reply

8 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic