Disappearing User Dirs

My current setup places the user’s home directory in a glusterfs volume. This causes problems with a recent Ubuntu 12.04 update and a user’s XDG user directories get reset to $HOME during the X11 login. It only happens for X11 logins and not shell/ssh logins.

A quick fix to this issue is to do the following:

  • Make a copy of the existing X11 session XDG configuration.
  1. # cp /etc/X11/Xsession.d/60xdg-user-dirs-update /etc/X11/Xsession.d/61xdg-user-dirs-update
  • Edit the copy to force the user directories to their defaults.
  • # nano /etc/X11/Xsession.d/61xdg-user-dirs-updateif [ -x /usr/bin/xdg-user-dirs-update ]; then
    /usr/bin/xdg-user-dirs-update --force
    fi

Done.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s