Results 1 to 3 of 3

Thread: User privaleges to shutdown, control net devices

  1. #1
    Member registered user
    Join Date
    Jun 2003
    Posts
    73

    User privaleges to shutdown, control net devices

    I'm loving Knoppix a lot, but being new to Debian there are two things I can't figure out how to do. I asked on a #debian but the answer seemed rather complex and I couldn't find anything on google.

    I want to allow a regular user account (mine in this case) to be able to shutdown and do ifup and ifdown commands to bring up interfaces. How would I go about doing this the Debian way? I know I can use sudo or just su to root, but it's bothersome to type my password all the time for that (I'm using a notebook). I tried to change the owner / group of /etc/network/interfaces, but then pump complained. Any ideas?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    As root:

    Code:
    chmod 777 /etc/network/ifstate
    Also- you might want to edit your /etc/sudoers file so that it looks like so:

    Code:
    <your username>  ALL=NOPASSWD: ALL
    That way when you use the sudo command you won't have to enter a password everytime. After that, you can do sudo ifdown -a and it will just do it- no password required.

  3. #3
    Member registered user
    Join Date
    Jun 2003
    Posts
    73

    Thanks

    Changing the octal mode of /etc/network/ifstate didn't help at all - pump still complained that it must be run as root. Changing the /etc/sudoers worked great though! Thanks

Similar Threads

  1. Change run control under 3.4??!!??
    By JockVSJock in forum General Support
    Replies: 5
    Last Post: 07-03-2004, 08:09 PM
  2. Mouse control
    By jbrush in forum General Support
    Replies: 0
    Last Post: 04-15-2004, 12:29 AM
  3. How to control IRQ selection on PnP cards?
    By rafial in forum Hardware & Booting
    Replies: 1
    Last Post: 11-13-2003, 03:28 AM
  4. Control ALT F1 trouble
    By iamanewbie in forum General Support
    Replies: 3
    Last Post: 10-27-2003, 10:13 AM
  5. Problems with x - Boot-shutdown... Boot-shutdown...Boot-shut
    By _CaLeB_ in forum Hardware & Booting
    Replies: 5
    Last Post: 03-31-2003, 06:20 PM

Posting Permissions

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


Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor picture

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor

$175.00



INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR picture

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR

$23.00



(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT) picture

(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT)

$700.00



AMD Ryzen 5 5500 Processor ( read Description) picture

AMD Ryzen 5 5500 Processor ( read Description)

$59.00



Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor picture

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor

$114.99



Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151 picture

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151

$79.99



Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor picture

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor

$67.99



motherboard CPU combo am4 picture

motherboard CPU combo am4

$70.00



INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH picture

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH

$179.99