Results 1 to 3 of 3

Thread: Remote rebooting the linux box

  1. #1
    kyiu
    Guest

    Remote rebooting the linux box

    Every now'n then my linux box has to be reboot to update the IP address. I have to do this everytime when my ISP change the IP address to my account. I can do the reboot remotely as long as su to the root before issuing the reboot command. I like to delegate is operation to a user and I don't want to give out the root password. : Another word, remote reboot the linux box in the user level. Or a better way to do this then rebooting the box.

    Ken

  2. #2
    JimH
    Guest

    Re:Remote rebooting the linux box

    Just restarting networking would be a quickie way, but you would still need root access.

    /sbin/service network restart

    You might look at the manpages for sudo. sudo allows users you specify to run the commands you specify as root.

    man sudo
    man sudoers

    Jim H

  3. #3
    Spot
    Guest

    Re:Remote rebooting the linux box

    Just restarting networking would be a quickie way, but you would still need root access.

    /sbin/service network restart

    You might look at the manpages for sudo. sudo allows users you specify to run the commands you specify as root.

    man sudo
    man sudoers

    Jim H
    Also, you might try writing a little script that pings a well known address, yahoo or something, once every 30 mnutes or so on a cron job. If there's no ping reply(meaning the ip expired), then it can restart the network.

Similar Threads

  1. is Linux even worth it on my system?
    By s134k in forum Linux - General Topics
    Replies: 13
    Last Post: 12-28-2006, 01:39 AM
  2. Print from Linux to Linux Debian 3.1
    By lth98105 in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 05-10-2006, 11:13 PM
  3. Desktop Linux: The Final Hurdles
    By in forum General Chat
    Replies: 1
    Last Post: 11-11-2004, 12:47 AM
  4. Novell aims Linux at corporate desktops
    By in forum General Chat
    Replies: 1
    Last Post: 11-09-2004, 01:51 PM
  5. Linux Better Than FreeBSD?
    By Coral_Sea in forum BSD
    Replies: 16
    Last Post: 01-04-2002, 01:37 PM

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
  •