Results 1 to 3 of 3

Thread: dhclient without sudo

  1. #1
    Join Date
    Apr 2011
    Beans
    17
    Distro
    Ubuntu 11.04 Natty Narwhal

    dhclient without sudo

    Hello,

    I want to start dhclient without using the sudo command from another software, JDownloader.
    I used visudo to change these permissions, but something is missing. How do I change the missing permissions?


    Last part of my visudo file:
    Code:
    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL
    %jdl ALL = NOPASSWD: /sbin/dhclient, /var/lib/dhcp3/dhclient.leases


    Code:
    dhclient
    Internet Systems Consortium DHCP Client V3.1.3
    Copyright 2004-2009 Internet Systems Consortium.
    All rights reserved.
    For info, please visit https://www.isc.org/software/dhcp/
    
    
    can't create /var/lib/dhcp3/dhclient.leases: Permission denied
    SIOCSIFADDR: Permission denied
    SIOCSIFFLAGS: Permission denied
    SIOCSIFFLAGS: Permission denied
    SIOCSIFADDR: Permission denied
    SIOCSIFFLAGS: Permission denied
    SIOCSIFFLAGS: Permission denied
    Open a socket for LPF: Operation not permitted


    I am member of the group jdl, part of the /etc/groups file:
    Code:
    jdl:x:1007:auftable

  2. #2
    Join Date
    Apr 2011
    Beans
    17
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: dhclient without sudo

    Still looking for a solution.

  3. #3
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: dhclient without sudo

    You still have to run the sudo(1) program. You can't just type 'dhclient' and expect it to magically assume root permissions.

    Can't you just make your jDownloader program run an arbitrary shell script? Then put "sudo dhclient" inside the shell script.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •