https://bugs.kde.org/show_bug.cgi?id=367582

MaxiPunkt <maxantis...@freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxantis...@freenet.de

--- Comment #7 from MaxiPunkt <maxantis...@freenet.de> ---
Hi there,

I've noticed similar issue on Fedora-23 & Fedora-25:

Found out that starting a bash-script via desktop-file as ordinary user is just
fine.

But same attempt in combination with UID-substitution functionality (the
bash-script shall be run as user "root") the execution of bash-script fails.

UID-substitution is defined directly inside the desktop-file (or within
KDE-properties of the icon). Like this one is asked to authenticate (password)
and the script will executed then.
This worked for me for years (in particular I run a backup-script as "root"),
now this is broken for a while already.


Content of example bash-script:
-------------------------------
#!/bin/bash
echo -n "I am: "
whoami


Content of example desktop-file:
--------------------------------
[Desktop Entry]
Comment=A simple script for test proposes
Exec=/path/to/above/script/test.sh
GenericName=Bash script
Icon=application-x-shellscript
MimeType=
Name=My-Terminal-Script
Path=
StartupNotify=false
Terminal=true
TerminalOptions=\s--noclose
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=none
#X-KDE-SubstituteUID=true
#X-KDE-Username=root


Check running the script by clicking the icon - works fine.
Uncomment the last 2 lines (enables UID-substitution) - will fail.


If my bug should not be related to the reported one please let me know.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to