On 07/25/2017 07:42 PM, Patrick O'Callaghan wrote:
On Wed, 2017-07-26 at 00:09 +0200, Kevin Kofler wrote:
> Emmett Culley wrote:
>> I have not been able to be productive since the update to Fedora 26, as I
>> keep running into changes like this and like preventing kwrite from
>> running as root.
>
> Try:
> sudo sed -i -e 's/getuid/getpid/g' /usr/bin/kwrite
> and it should come up as root again.
Running sed on an executable is unlikely to work:
$ file /usr/bin/kwrite
/usr/bin/kwrite: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=3c378cb60be1e2a76f98
1ba5c15c1096f1b6a5b5, stripped
Sure it does. kwrite.test being a copy of /usr/bin/kwrite
[boutilpj@localhost ~]$ strings kwrite.test |grep getuid
getuid
[boutilpj@localhost ~]$ sed -i "s/getuid/getpid/g" kwrite.test
[boutilpj@localhost ~]$ strings kwrite.test |grep getuid
[boutilpj@localhost ~]$ strings kwrite.test |grep getpid
getpid
Also, are you sure you mean 'getpid'?
poc
_______________________________________________
kde mailing list -- kde(a)lists.fedoraproject.org
To unsubscribe send an email to kde-leave(a)lists.fedoraproject.org