Chrome shows errors after being run with "sudo"
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/
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.
ProcVersionSign
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_DATA_DIRS = /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=""
Status changed to 'Confirmed' because the bug affects multiple users.