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
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



Samsung Planet First 8GB 2Rx4 PC3-10600R picture

Samsung Planet First 8GB 2Rx4 PC3-10600R

$341.00



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC picture

24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC

$349.99



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



Micron 6x64GB(384GB)DDR4 ECC Registered LRDIMM PC4-2400T 288-Pin MTA72ASS8G72LZ picture

Micron 6x64GB(384GB)DDR4 ECC Registered LRDIMM PC4-2400T 288-Pin MTA72ASS8G72LZ

$1600.00



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G) picture

Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G)

$89.99



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$202.50