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 ...
- 07-06-2008 #1Linux 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.
- 07-06-2008 #2Linux 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(Or the correct name of the tool if that is incorrect)Code:/usr/sbin/ether-wake
- 07-06-2008 #3Linux 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
- 07-09-2008 #4Just 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.
- 07-09-2008 #5Just 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
- 07-09-2008 #6Just 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
- 07-10-2008 #7Linux Newbie
- Join Date
- Feb 2006
- Location
- Slovenia
- Posts
- 162
cyberbitus, nice work, I'll give sudo a try, thanks
- 07-11-2008 #8Linux 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.


Reply With Quote