Bug 23264

Summary: kwrite can no longer be run as root
Product: Mageia Reporter: William Kenney <wilcal.int>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: marja11
Version: 6   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description William Kenney 2018-07-01 20:19:22 CEST
Description of problem:

Make sure your test system is up-to-date

Open a terminal
type: su -
[user@localhost ~]$ su -
this action should change the terminal to superuser mode
[root@localhost ~]# 
type: kwrite
gets the following response:
[root@localhost ~]# kwrite
Executing KWrite as root is not possible. To edit files as root use:
SUDO_EDITOR=kwrite sudoedit <file>

type:
[root@localhost ~]# SUDO_EDITOR=kwrite sudoedit test.txt

results in:

[root@localhost ~]# SUDO_EDITOR=kwrite sudoedit test.txt
-bash: sudoedit: command not found

This all used to work and still does if you bring up M6 in a Live-DVD

Has something changed or do I not understand something?

Thanks
Comment 1 Marja Van Waes 2018-07-02 07:29:21 CEST
(In reply to William Kenney from comment #0)

> 
> Has something changed or do I not understand something?
> 

Something has changed, see this thread on dev ml: 
https://ml.mageia.org/l/arc/dev/2018-05/msg00100.html

And read this for why:

https://blog.martin-graesslin.com/blog/2017/02/editing-files-as-root/

So this is not a bug, but a new feature to protect you from evil :-)

CC: (none) => marja11
Resolution: (none) => INVALID
Summary: su - command has changed => kwrite can no longer be run as root
Status: NEW => RESOLVED