Bug 23264 - kwrite can no longer be run as root
Summary: kwrite can no longer be run as root
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-01 20:19 CEST by William Kenney
Modified: 2018-07-02 07:29 CEST (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.