I would like to wake up other computers from my FreeNAS box. From the terminal, but only as root, I can use the "wake" command and it does what I want. Now I would like to use this command as a regular user.
Since the owner/group and permission settings of the wake command are "-r-xr-xr-x 1 root wheel 6904 Apr 15 09:23 /usr/sbin/wake", I thought that if I add my username to the wheel group, it should work. Instead, if I execute the command, I get this message (FreeNAS-9.3-STABLE-201505100553):
[freenasuser@freenasbox ~]$ wake em0 <<MAC ADDRESS HERE>>
wake: Cannot open bpf interface: Permission denied
I'm stuck here. I would certainly avoid manually overwriting the permission of system files, and even if I did so, they would probably be restored at each FreeNAS system upgrade.
So, how to allow users executing the "wake" command in a proper way?
Thanks for your thoughts,
Tamás
Since the owner/group and permission settings of the wake command are "-r-xr-xr-x 1 root wheel 6904 Apr 15 09:23 /usr/sbin/wake", I thought that if I add my username to the wheel group, it should work. Instead, if I execute the command, I get this message (FreeNAS-9.3-STABLE-201505100553):
[freenasuser@freenasbox ~]$ wake em0 <<MAC ADDRESS HERE>>
wake: Cannot open bpf interface: Permission denied
I'm stuck here. I would certainly avoid manually overwriting the permission of system files, and even if I did so, they would probably be restored at each FreeNAS system upgrade.
So, how to allow users executing the "wake" command in a proper way?
Thanks for your thoughts,
Tamás