Bug 349237 - kdesu: Different hostname determination than sudo
Summary: kdesu: Different hostname determination than sudo
Status: REPORTED
Alias: None
Product: kdesu
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdesu bugs tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-16 14:34 UTC by tormen
Modified: 2022-09-02 14:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.