English
Ask Your Question
0

No protocol specified

asked 2017-03-01 11:17:43 +0000

juroz gravatar image

Hi everyone, i recently installed fedora 25 on my laptop. During the post-installation phase, i installed nmap and its GUI, Zenmap. I tried to execute zenmap with the command "sudo zenmap" but it prints the following lines:


No protocol specified
No protocol specified
Error: could not open display


At this point i tested the command with different tools like gedit, libreoffice, ecc... But the result is similar. What can i do? Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

I think that the problem colud be this In short, since Fedora uses Wayland, it is not possible to use sudo to open graphical applications.

alcir ( 2017-03-01 15:53:54 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-03-01 15:57:40 +0000

updated 2017-03-01 15:58:31 +0000

This workaround works for me

$ xhost si:localuser:root
$ sudo zenmap
edit flag offensive delete link more

Comments

Is this workaround secure or does it leavwe a gap in security -- establish a new attack vector? It's recommended not to use the root login, but that is a very practical if insecure workaround too, but obviously not 'safe' way to go -- and that's a bit hyperbolic but hopefully illustrative

tauceti ( 2017-03-15 23:32:31 +0000 )edit

Please read comment 64 on the bugzilla site.

alcir ( 2017-03-16 17:07:45 +0000 )edit

They note that you can remove the permissions after you're done by running xhost -si:localuser:root

OnorioCatenacci ( 2017-10-31 17:25:15 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-03-01 11:15:56 +0000

Seen: 488 times

Last updated: Mar 01 '17