Chrome shows errors after being run with "sudo"

Bug #873284 reported by Ben Okopnik
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

After being run with "sudo", Chrome starts to pop up a pair of boxes that say "Your preferences cannot be read" (and, obviously, fails to read the preferences.) The problem is that two of the files in the ~user/.config directory are now owned by root and have 0700 as their permissions, and therefore cannot be read by the non-root user.

Instant (but not permanent) fix: sudo chown $LOGNAME:$LOGNAME ~/.config/chromium/{Local\ State,Default/Preferences}

Permanent fix: Write the pref data to the EUID's (rather than the RUID's) ~/.config directory. Failing that, at least make the error message clearer and more useful - perhaps by listing the affected files and giving the above solution so that the user knows what to do to fix it.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: chromium-browser 12.0.742.112~r90304-0ubuntu0.11.04.1
ProcVersionSignature: Ubuntu 2.6.38-11.50-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
Architecture: i386
Date: Thu Oct 13 07:49:10 2011
Desktop-Session:
 DESKTOP_SESSION = gnome-classic
 XDG_CONFIG_DIRS = /etc/xdg/xdg-gnome-classic:/etc/xdg
 XDG_DATA_DIRS = /usr/share/gnome-classic:/usr/share/gnome:/usr/local/share/:/usr/share/
Env:
 MOZ_PLUGIN_PATH = None
 LD_LIBRARY_PATH = None
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: chromium-browser
UpgradeStatus: No upgrade log present (probably fresh install)
chromium-default: CHROMIUM_FLAGS=""

Revision history for this message
Ben Okopnik (ben-okopnik) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
dino99 (9d9) wrote :

Natty have reached EOL since a while and that issue is not reproducible with recent version(s); so closing that report.

Changed in chromium-browser (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.