Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17
aint working moderator@Camer:~$ /sbin/ifconfig eth0 down SIOCSIFFLAGS: Permission denied...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Feb 2005
    Posts
    12

    aint working

    moderator@Camer:~$ /sbin/ifconfig eth0 down
    SIOCSIFFLAGS: Permission denied

  2. #12
    Linux Newbie
    Join Date
    Jun 2005
    Posts
    181
    You need to type sudo first

    sudo /sbin/ifconfig eth0 down
    200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.

  3. #13
    Just Joined!
    Join Date
    Feb 2005
    Posts
    12
    getting much better, one more thing is this command correct:

    sudo rm /etc/dhcpc/dhcpcd-eth0.pid

    I want to able to delete this file, somehow when I try to restart my eth0 i got the msg of deleting this file first, how can I do that I believe I have a syntax error on that command.

    Thanks

  4. #14
    Linux Newbie
    Join Date
    Jun 2005
    Posts
    181
    That command is correct. You may want to try
    Code:
    moderator        ALL=(ALL)       NOPASSWD: ALL
    That'll allow you to just type sudo and the command, any command, and it'll be run as root. Just be careful what you type sudo in front of.
    200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.

  5. #15
    Just Joined!
    Join Date
    Feb 2005
    Posts
    12
    that wont help Monkeh i don't want to give full rights to users, However I did fix it so thank you guys, you were really helpfull.


  6. #16
    Linux Newbie
    Join Date
    Jun 2005
    Posts
    181
    Well assuming moderator is your user account, and your account only, that's generally fine.
    200mhz Pentium 1 with MMX, 128mb RAM, 10gb Seagate HDD. Beastly.

  7. #17
    Linux Engineer
    Join Date
    Apr 2005
    Location
    Belgium
    Posts
    1,429
    If someone hacks into your account, you're gonna be really sorry about that line in the sudoers file, trust me! You should use 'su' to execute root commands in the shell. It is quite dangerous to give permanent permissions for lots of commands. For shutting down, burning cd's, it's useful, but you won't have to do /sbin/ifconfig ten times a day, or rm root-owned files and stuff ...
    ** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
    ** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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