On 10/3/23 14:20, Joe Zeff wrote:
On 10/03/2023 03:14 PM, old sixpack13 wrote:
> now, on an command line, I usually do
> 1. su - ron (ron is in sudo group)
> 2. and then sudo ether-wake -i enp3s0 <mac-address> && ping nu
Why? If you have access to su and the root password, why bother with
sudo? Just use su -c "ether-wake -i enp3s0 <mac-address> && ping
nu"
and do it in just one step? HTH, HAND.
He's not using the root password. You can use "su" to go to other users
as well.