Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BleachBit 4.2 doesn't work in administrator mode on Debian 10 Wayland #1084

Closed
mo-moxi opened this issue Jan 5, 2021 · 7 comments
Closed
Assignees
Labels
Milestone

Comments

@mo-moxi
Copy link

mo-moxi commented Jan 5, 2021

Thought you should know that Bleachbit 4.2 doesn't work in administrator mode on Debian 10 xWayland from the desktop icon and throw this error when run from the console:

root@asus:~# bleachbit
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused

(bleachbit:11850): Gdk-CRITICAL **: 16:57:27.525: gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
Unable to init server: Could not connect: Connection refused

(bleachbit:11850): Gtk-WARNING **: 16:57:27.531: cannot open display:

Profile is as previous post earlier today.

M

@az0 az0 added this to the 4.4 milestone Jan 6, 2021
@az0
Copy link
Member

az0 commented Jan 6, 2021

Looks like #1045 . Let's keep both open as we research, fix, and confirm the fix.

@az0 az0 added the priority:high Fix sooner than later label Mar 27, 2021
@az0 az0 modified the milestones: 4.4, 4.6 May 19, 2021
@az0 az0 changed the title Bleachbit 4.2 doesn't work in administrator mode on debian 10 Wayland,,, BleachBit 4.2 doesn't work in administrator mode on Debian 10 Wayland May 19, 2021
@rados
Copy link
Contributor

rados commented Jun 17, 2021

@az0
I've verified that the application doesn't start as root but starts otherwise. I'm available to trace further.

@az0
Copy link
Member

az0 commented Jun 18, 2021

@rados
Thank you

@rados
Copy link
Contributor

rados commented Jun 18, 2021

@mo-moxi
I've found a way to run it. It works on my machine. The article bellow describes it:

xhost si:localuser:root
sudo bleachbit

https://wiki.archlinux.org/title/Running_GUI_applications_as_root

@abitrolly
Copy link
Contributor

If BB can detect the condition, it can show this way to users.

@rados
Copy link
Contributor

rados commented Jun 21, 2021

@abitrolly @mo-moxi @az0
Just to warn you that this solution presents security risk:

"All of the following methods have security implications that users should be aware of. As put by Emmanuele Bassi, a GNOME developer: "there are no real, substantiated, technological reasons why anybody should run a GUI application as root. By running GUI applications as an admin user you are literally running millions of lines of code that have not been audited properly to run under elevated privileges; you are also running code that will touch files inside your $HOME and may change their ownership on the file system; connect, via IPC, to even more running code, etc. You are opening up a massive, gaping security hole"
https://wiki.archlinux.org/title/Running_GUI_applications_as_root#Circumvent_running_graphical_apps_as_root

@abitrolly
Copy link
Contributor

@rados yes, this warning could be shown too. Although I would say that the major security risk is stealing SSH keys and private documents, and that doesn't require root access. BB does a great job by being open source, but it also need sponsors for bounty hunting programs to cover a;; possible attack vectors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants