Find the answer to your Linux question:
Results 1 to 8 of 8
Hi everyone. I am using ether-wake in order to wake another machine on my home network. It works ok, the only thing that bothers me is, that I have to ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162

    How to make ether-wake available for users?

    Hi everyone. I am using ether-wake in order to wake another machine on my home network. It works ok, the only thing that bothers me is, that I have to bee loged in as root in order to execute the command. I wold like the ether-wake command to be available for all users. In suse 10.2 the executable resides in /usr/sbin and it has the following permissions -rwxr-xr-x, shouldn't this be enough to allow the executing to all users? Thanks for help.

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Is it a case that it doesn't work for users or that they just can't see it from the command line? Normal users wouldn't have /usr/sbin/ in their $PATH but can still call commands from there manually. It may be a case that users don't have the permissions to the devices required.

    Try as another user
    Code:
    /usr/sbin/ether-wake
    (Or the correct name of the tool if that is incorrect)

  3. #3
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162
    Thanks bigtomrodney, I already tried to enter the full path to the executable like /usr/sbin/ether-wake, but the command line response is: "This program must be run as root", so I gues it has to be something with the permissions. I thought it is just the matter of permissions to the executable, but since all the users have "x" in permissions that shouldn't be the problem. Ok, it's not that tough to switch to root user, but I thought maybe it could work without that. So if there is a solution to this issue, it's welcome, otherwise I'll take it as it is

  4. #4
    Just Joined!
    Join Date
    Jul 2008
    Posts
    3
    Ditto

    I have been trying to do this in Fedora Core 9 and I get the same result - must be root to use this command. I would be very interested in a solution.

    Thanks in advance.

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    3
    I'm beginning to think that the ether-wake command needs to be recompiled in order to make it useable by any user (or script). The below is a snippet from a script that an individual created for automating a wake-up among other things:

    Extract the ether-wake file.
    Compile with this command 'gcc -O -Wall -o ether-wake ether-wake.c'
    Copy the ether-wake binary to /usr/local/sbin/


    Full page is here:

    http://www.telusplanet.net/public/ja.../OMcluster.txt

    I've been googling for hours and this is the only clue I can find.

    Ken

  6. #6
    Just Joined!
    Join Date
    Jul 2008
    Posts
    3
    Think I may have found it. This application (Sudo) runs commands as root, evidently:

    Sudo Main Page

    Ken

  7. #7
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162
    cyberbitus, nice work, I'll give sudo a try, thanks

  8. #8
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162
    Solved with your help As cyberbitus suggested I tried with sudo which is already included in suse 10.2 distro. In order to allow the usage of ether-wake command for a certain user just edit /etc/sudoers file and add new line like this: %username localhost=/sbin/ether-wake, where username is the name of the invoked user. It works. Thanks for your help.

Posting Permissions

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