Sample Header Ad - 728x90

Why I get permission denied output why I run, pkexec /opt/lampp/manager-linux-x64.run ? Is it normal?

-1 votes
1 answer
1455 views
I was following a link to add Xampp server in "Show all application" section where normally we can see all GUI apps installed. But it's different in case of Xampp. We have to do things manually. So I opened the file using: pkexec nano /usr/share/applications/xampp-control-panel.desktop Because I can't use this: 007@bond:~$ pkexec gedit /usr/share/applications/xampp-control-panel.desktop Unable to init server: Could not connect: Connection refused (org.gnome.gedit:17349): Gtk-WARNING **: 20:18:25.529: cannot open display: Anyhow when I tried putting to check whether Xampp run pkexec, I got this error: 007@bond:~$ Exec=pkexec /opt/lampp/manager-linux-x64.run bash: /opt/lampp/manager-linux-x64.run: Permission denied **My questions/doubt**: 1. Isn't **pkexec** is a replacement of **gksudo**? Then why don't it works sometimes?
Asked by Pranav (139 rep)
Aug 13, 2019, 02:55 PM
Last activity: Aug 13, 2019, 04:38 PM