Yeah, I saw that. Generally, deleting /tmp while a system is booted isn't a good idea. In your case, this kills your XAuth cookie, which has all kinds of weird side effects. I'm trying to find out why your cookie is getting placed into /tmp rather than being written to ~/.Xauthority. Please do run that next set of commands -- let's try to find out what's going on.
n.b.: I've never been a fan of Bleachbit for this exact reason. It's too much of a sledgehammer.
Announcement
Collapse
No announcement yet.
Bleachbit as root fails to launch
Collapse
This topic is closed.
X
X
-
The maintainer upped the importance of the bug to High. This is probably why! It messes with your ability to run graphical apps as admin, without a re-boot.
- Top
- Bottom
Leave a comment:
-
OK! We're getting somewhere. The output of #5 tells me that your XAuth cookie is getting deleted when BleachBit purges /tmp. But why is your cookie there? Mine isn't. More investigation...
1. Reboot again.
2. Show the output of
3. Do a normal user Bleachbit run (to recreate the broken condition).Code:xauth info printenv | grep HOME printenv | grep X ls -al ~/.X* ls -al /tmp/kde-mike
4. Repeat all the commands in #2.
- Top
- Bottom
Leave a comment:
-
Ha! Thunderbird is now asking for my PW each time I click New Messages! Yep, something is messing with my super sudo root-o thingy, or something. I clicked the Passwoord Manager thing in T-Bird to try to save the PW.Last edited by Qqmike; Oct 10, 2014, 09:36 PM.
- Top
- Bottom
Leave a comment:
-
1. Restart X (or reboot).
Ctrl-Alt-Del
2. Open a Kate window (for subsequent pasting of stuff).
3. Run xauth list and paste the output into the opened Kate window.
~$ xauth list
mike-desktop14/unix:0 MIT-MAGIC-COOKIE-1 -looks like a UUID here, 32 digits-
4. Do a normal user Bleachbit run (to recreate the broken condition). --OK
5. Run xauth list again and paste the output into the opened Kate window. Is it the same as the previous time?
No, it is different:
~$ xauth list
xauth: file /tmp/kde-mike/xauth-1000-_0 does not exist
6. Try kdesudo kcalc -- it should fail similarly.
Yes, failed.
7. Run xauth -b
8. Try kdesudo kcalc -- what happens now? Same error and failure, or does the calculator run?Code:~$ xauth -b Attempting to break locks on authority file /tmp/kde-mike/xauth-1000-_0 xauth: file /tmp/kde-mike/xauth-1000-_0 does not exist Using authority file /tmp/kde-mike/xauth-1000-_0
Calculator did NOT run:
xauth> kdesudo kcalc
xauth: (stdin):1: unknown command "kdesudo"
xauth>Last edited by Qqmike; Oct 10, 2014, 10:00 PM.
- Top
- Bottom
Leave a comment:
-
Crap. No /root/.Xauthority ... one theory thwarted.
1. Restart X (or reboot).
2. Open a Kate window (for subsequent pasting of stuff).
3. Run xauth list and paste the output into the opened Kate window.
4. Do a normal user Bleachbit run (to recreate the broken condition).
5. Run xauth list again and paste the output into the opened Kate window. Is it the same as the previous time?
6. Try kdesudo kcalc -- it should fail similarly.
7. Run xauth -b
8. Try kdesudo kcalc -- what happens now? Same error and failure, or does the calculator run?
- Top
- Bottom
Leave a comment:
-
Yes, I see this now.
Code:sudo ls -al /root [sudo] password for mike: total 32 drwx------ 6 root root 4096 Oct 1 11:33 . drwxr-xr-x 22 root root 4096 Oct 9 08:28 .. -rw-r--r-- 1 root root 3106 Feb 19 2014 .bashrc drwxr-xr-x 3 root root 4096 Oct 1 16:59 .config drwx------ 3 root root 4096 Oct 1 11:17 .dbus drwxr----- 2 root root 4096 Oct 7 09:50 .hplip drwxr-xr-x 3 root root 4096 Oct 1 11:17 .kde -rw-r--r-- 1 root root 140 Feb 19 2014 .profile
- Top
- Bottom
Leave a comment:
-
Ah ha!Originally posted by Qqmike View Postobviously, Kate did not open
So I'm fairly certain that the problem isn't
--> Bleachbit won't run as root after it runs as normal user
but instead the problem is
--> Running Bleachbit (as a normal user) creates a situation in which subsequent attempts to run any graphical program with elevated rights will fail
See the difference?
What's the output of sudo ls -al /root?
- Top
- Bottom
Leave a comment:
-
Yes, same state as above:
(Of course, it asked for my PW at one point and so on; and, obviously, Kate did not open.)Code:mike@mike-desktop14:~$ kdesudo kate kdesudo(18657) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0" Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. No protocol specified kate: cannot connect to X server :0
- Top
- Bottom
Leave a comment:
-
Hm. Qq... I noticed this in the output on the console when you attempted the root run:
Assuming you're in the current state -- where BleachBit no longer runs as root -- please run kdesudo kate in the console window. What's the output in the window, and did Kate start?Code:~$ kdesudo bleachbit kdesudo(18451) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0"
- Top
- Bottom
Leave a comment:
-
Sorry, my bad. It's been a whine since I read this entire post and was thinking backwards -- I had convoluted the problem into that of Bleachbit failing as normal user after succeeding as root. Now I've read the full thread and I know the problem is failing as root after running as normal user. The two things I asked for wouldn't show anything useful for this scenario.
- Top
- Bottom
Leave a comment:
-
1. Perform a successful run as a normal user.
OK, 13.9 GB, 40 files
Code:Firefox cannot be cleaned because it is currently running. Close it, and try again. Delete 4.1kB /home/mike/.kde/cache-mike-desktop14/kio_help/usr Delete 4.1kB /home/mike/.kde/cache-mike-desktop14/plasma-wallpapers/home Delete 4.1kB /home/mike/.kde/cache-mike-desktop14/plasma-wallpapers/usr Delete 1.8MB /home/mike/.kde/cache-mike-desktop14/ksycoca4 Delete 4.1kB /home/mike/.kde/cache-mike-desktop14/kio_help Delete 4.1kB /home/mike/.kde/cache-mike-desktop14/plasma-wallpapers Delete 10.5MB /home/mike/.kde/cache-mike-desktop14/icon-cache.kcache Delete 4.1kB /home/mike/.kde/cache-mike-desktop14/ksycoca4stamp Clean file 0 /home/mike/.config/vlc/vlc-qt-interface.conf Clean file 0 /home/mike/.config/vlc/vlc-qt-interface.conf Delete 4.1kB /home/mike/.thunderbird/eew828f5.default/Mail/pop.centurylink-1.net/Trash.msf Delete 8.2kB /home/mike/.thunderbird/eew828f5.default/Mail/pop.centurylink-1.net/Sent.msf Delete 4.1kB /home/mike/.thunderbird/eew828f5.default/Mail/pop.centurylink-1.net/Drafts.msf Delete 12.3kB /home/mike/.thunderbird/eew828f5.default/Mail/pop.centurylink-1.net/Inbox.msf Delete 4.1kB /home/mike/.thunderbird/eew828f5.default/Mail/Local Folders/Trash.msf Delete 4.1kB /home/mike/.thunderbird/eew828f5.default/Mail/Local Folders/Inbox.msf Delete 8.2kB /home/mike/.thunderbird/eew828f5.default/Mail/Local Folders/xzDaveJ.msf Vacuum 0 /home/mike/.thunderbird/eew828f5.default/webappsstore.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/urlclassifier3.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/permissions.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/addons.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/downloads.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/formhistory.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/places.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/chromeappsstore.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/blist.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/extensions.sqlite Vacuum 98.3kB /home/mike/.thunderbird/eew828f5.default/global-messages-db.sqlite Vacuum 0 /home/mike/.thunderbird/eew828f5.default/content-prefs.sqlite Delete 4.1kB /home/mike/.cache/fontconfig/158c65c810c0d352a587f5be66058e87-le32d4.cache-4 Delete 4.1kB /home/mike/.cache/fontconfig/CACHEDIR.TAG Delete 24.6kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/E/7B/ACA48d01 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/E/7B Delete 143.4kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/A/49/6B00Dd02 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/A/49 Delete 102.4kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/8/1B/EB006d02 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/8/1B Delete 28.7kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/1/20/7115Bd02 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/1/20 Delete 20.5kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/6/6F/336A7d02 Delete 69.6kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/6/44/F58B1d01 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/6/6F Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/6/44 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/E Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/A Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/8 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/1 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache/6 Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default/Cache Delete 4.1kB /home/mike/.cache/thunderbird/eew828f5.default Delete 4.1kB /home/mike/.cache/fontconfig Delete 4.1kB /home/mike/.cache/thunderbird Clipboard 0 Delete 4.1kB /home/mike/.recently-used [Errno 13] Permission denied: '/var/log/syslog.1' [Errno 13] Permission denied: '/var/log/cups/access_log.1.gz' Delete 991.2kB /tmp/nsmail.jpeg E: Could not open lock file /var/cache/apt/archives/lock - open (13: Permission denied) E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) [Errno 13] Permission denied: '/var/cache/apt/archives/rsyslog_7.4.4-1ubuntu2.3_i386.deb' LibreOffice cannot be cleaned because it is currently running. Close it, and try again. Disk space recovered: 13.9MB Files deleted: 40 Special operations: 15 Errors: 7
2. Run the following two commands:
Code:mike@mike-desktop14:~$ ls -al ~/.Xauthority -rw------- 1 mike mike 59 Oct 9 08:32 /home/mike/.Xauthority mike@mike-desktop14:~$ ls -alR ~/.config/bleachbit /home/mike/.config/bleachbit: total 12 drwx------ 2 mike mike 4096 Oct 1 17:04 . drwx------ 14 mike mike 4096 Oct 2 10:51 .. -rw-rw-r-- 1 mike mike 1421 Oct 10 19:20 bleachbit.ini
3. Run Bleachbit as root
Code:~$ kdesudo bleachbit kdesudo(18451) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display ":0" Bus::open: Can not get ibus-daemon's address. IBusInputContext::createInputContext: no connection to ibus-daemon No protocol specified /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) Could not open X display
Nope, no go, won't open. Running as root AFTER running as user will not work.
Maybe I don't understand what you asked to do.
I stopped here.
4. Run the same two commands as above
5. Run Bleachbit as a normal user -- here's where the failure happensCode:mike@mike-desktop14:~$ ls -al ~/.Xauthority -rw------- 1 mike mike 59 Oct 9 08:32 /home/mike/.Xauthority mike@mike-desktop14:~$ ls -alR ~/.config/bleachbit /home/mike/.config/bleachbit: total 12 drwx------ 2 mike mike 4096 Oct 1 17:04 . drwx------ 14 mike mike 4096 Oct 2 10:51 .. -rw-rw-r-- 1 mike mike 1421 Oct 10 19:20 bleachbit.ini
6. Run the same two commands as above
Post the outputs of all three runs in a reply here.Last edited by Qqmike; Oct 10, 2014, 08:03 PM.
- Top
- Bottom
Leave a comment:
-
Let's examine a couple things. For those having the problem, please:
1. Perform a successful run as a normal user.
2. Run the following two commands:
3. Run Bleachbit as rootCode:ls -al ~/.Xauthority ls -alR ~/.config/bleachbit
4. Run the same two commands as above
5. Run Bleachbit as a normal user -- here's where the failure happens
6. Run the same two commands as above
Post the outputs of all three runs in a reply here.
- Top
- Bottom
Leave a comment:
Users Viewing This Topic
Collapse
There are 0 users viewing this topic.
Leave a comment: