3
votes
Accepted
Change Window Title When Start PowerShell with Sudo.exe
Refer to Start /? of CMD: START ["title"] [command/program].
Just add sudo.exe at beginning.
sudo.exe start "Windows PowerShell" powershell.exe
sudo.exe start "PowerShell 7&...
1
vote
start non-root user systemd and systemd services via sudo without enable-linger
The answer given here is working for me (on Ubuntu 22.04 LTS):
me@host$ systemd-run --system --scope sudo -iu them # asks for my password
them@host$ systemctl --user status # works
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sudo × 1145linux × 582
ubuntu × 207
bash × 164
sudoers × 117
permissions × 115
ssh × 101
macos × 95
root × 93
su × 69
debian × 56
command-line × 55
unix × 52
shell × 47
terminal × 45
passwords × 42
centos × 34
security × 28
mac × 27
python × 22
environment-variables × 22
user-accounts × 19
script × 17
redhat-enterprise-linux × 15
path × 14