On 10/05/2023 12:20 PM, old sixpack13 wrote:
KISS
bash history
CRTL+r and keyed in "ether" and ENTER
thanks anyway !
That works, of course, if the line you need to repeat is different every
time. If it's something you use all the time, either a one-liner
script, or an alias in .bashrec migh
> On 10/03/2023 03:35 PM, old sixpack13 wrote:
>
> If you're using that exact same command often enough, create an alias
> for it and put it into your .bashrc. That way, you not only save
> keystrokes, you avoid typoes.
KISS
bash history
CRTL+r and keyed in "ether" and ENTER
thanks anyway !
_
> On 3 Oct 2023, at 22:15, old sixpack13 wrote:
>
> I don't want to have user joe in sudo group
Why not? You can control who runs which command with sudoers config.
Barry
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send a
On 10/03/2023 03:35 PM, old sixpack13 wrote:
I've tested similar.
If you're using that exact same command often enough, create an alias
for it and put it into your .bashrc. That way, you not only save
keystrokes, you avoid typoes.
___
users mailin
> On 10/3/23 14:35, old sixpack13 wrote:
>
> Add "-P" to the "su" command.
Thanks again and @ALL
the working command is:
su -P -c "sudo ether-wake -i enp3s0 && ping nuc" - ron
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send
On 10/3/23 14:35, old sixpack13 wrote:
On 10/3/23 14:14, old sixpack13 wrote:
su -c "sudo ether-wake -i enp3s0 && ping nuc" - ron
Thanks !
I've tested similar.
with your command I get:
Password:
sudo: a terminal is required to read the password; either use the -S option to
read from stand
> On 10/3/23 14:14, old sixpack13 wrote:
>
> su -c "sudo ether-wake -i enp3s0 && ping nuc" - ron
Thanks !
I've tested similar.
with your command I get:
Password:
sudo: a terminal is required to read the password; either use the -S option to
read from standard input or configure an askpass h
On 10/3/23 14:14, old sixpack13 wrote:
I have the following problem:
I'm logged in as user joe (he is not in sudo group) and want to etherwake a
remote box, called nuc, via an one-liner in an script.
now, on an command line, I usually do
1. su - ron (ron is in sudo group)
2. and then sudo ethe
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 && ping nu
Why? If you have access to su and the root password, why bother with
sudo? Just use su -c
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 && 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 && ping nu"
I have the following problem:
I'm logged in as user joe (he is not in sudo group) and want to etherwake a
remote box, called nuc, via an one-liner in an script.
now, on an command line, I usually do
1. su - ron (ron is in sudo group)
2. and then sudo ether-wake -i enp3s0 && ping nuc
etherwake
11 matches
Mail list logo