Bug 349237

Summary: kdesu: Different hostname determination than sudo
Product: [Applications] kdesu Reporter: tormen
Component: generalAssignee: kdesu bugs tracker <kdesu-bugs-null>
Status: REPORTED ---    
Severity: normal CC: tormen
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tormen 2015-06-16 14:34:21 UTC
Also during my afternoon with kdesu I found out that :
kdesu uses a different mechanism to dermine the hostname than sudo !

kdesu seems to use (at least looking at the values) whatever the "hostname" cmd returns.
sudo seems to use (at least looking at the values) whatever "hostname -s" cmd returns.



Reproducible: Always

Steps to Reproduce:
1. Setting hostname to a FQN, for instance "my-host.my-domain.com"
2. Using "my-host" in /etc/sudoers
3. strace kdesu /usr/bin/true 


Actual Results:  
shows that kdesu uses "my-host.my-domain.com", but sudo is fine with just "my-host"


Expected Results:  
kdesu should behave as sudo determinig the hostname
Comment 1 tormen 2015-06-16 14:36:14 UTC
Problem encountered on opensuse 13.2: 

kdesu --version 
Qt: 4.8.6 
KDE Development Platform: 4.14.8 
KDE su: 1.0 

kdesu is part of kdebase4-runtime: 
i | kdebase4-runtime | package | 14.12.3-16.6 | x86_64 | (System Packages)
Comment 2 Justin Zobel 2021-03-09 23:42:38 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.