slitaz-doc-wiki-data annotate pages/en/guides/faq-login.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
rev   line source
slaxemulator@7 1 ====== Cannot Login to Desktop ======
slaxemulator@7 2
slaxemulator@7 3 ===== Symptoms =====
slaxemulator@7 4
slaxemulator@7 5 * Slim, the SliTaz Login Manager, fails with the message:
slaxemulator@7 6 <code> failed to execute login command </code>
slaxemulator@7 7
slaxemulator@7 8 ===== Explanation =====
slaxemulator@7 9
slaxemulator@7 10 This is caused when files in the user's /home directory are not properly configured. The following files must exist, this can be verified with the ''ls -la'' command:
slaxemulator@7 11 * .Xdefaults
slaxemulator@7 12 * .xinitrc
slaxemulator@7 13 * something else?
slaxemulator@7 14
slaxemulator@7 15 ===== Solution =====
slaxemulator@7 16 You should copy the default files from the template located in the /etc/skel directory. This happens automatically when a new user is created with the SliTaz Control Box, but not when using the command-line utilities. Occasionally users experience these files being removed or modified/broken.
slaxemulator@7 17
slaxemulator@7 18 Switch to the root (super) user:
slaxemulator@7 19 <code> su root </code>
slaxemulator@7 20 Change to the affected users /home directory:
slaxemulator@7 21 <code> cd /home/USERNAME </code>
slaxemulator@7 22 Set the shell options to allow the dot (.) to be included in file names:
slaxemulator@7 23 <code> shopt -s dotglob </code>
slaxemulator@7 24 Copy all files, recursively:
slaxemulator@7 25 <code> cp -r /etc/skel/* /home/USERNAME </code>
slaxemulator@7 26 Change ownership of all files and directories in the user's home to that of the affected user:
slaxemulator@7 27 <code> chown -R USERNAME:USERGROUP /home/USERNAME/* </code>
slaxemulator@7 28 Restore the shell options:
slaxemulator@7 29 <code> shopt -u dotglob </code>
slaxemulator@7 30 The essential files should now be restored!
slaxemulator@7 31
slaxemulator@7 32 EDIT:
slaxemulator@7 33
slaxemulator@7 34 <code> shopt -u dotglob </code>
slaxemulator@7 35 is not working in slitaz-3.0.iso - instead of this run in addition:
slaxemulator@7 36 <code> chown -R USERNAME:USERGROUP /home/USERNAME/.[a-zA-Z0-9]*</code>
slaxemulator@7 37 ----