slitaz-doc-wiki-data view 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
line source
1 ====== Cannot Login to Desktop ======
3 ===== Symptoms =====
5 * Slim, the SliTaz Login Manager, fails with the message:
6 <code> failed to execute login command </code>
8 ===== Explanation =====
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:
11 * .Xdefaults
12 * .xinitrc
13 * something else?
15 ===== Solution =====
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.
18 Switch to the root (super) user:
19 <code> su root </code>
20 Change to the affected users /home directory:
21 <code> cd /home/USERNAME </code>
22 Set the shell options to allow the dot (.) to be included in file names:
23 <code> shopt -s dotglob </code>
24 Copy all files, recursively:
25 <code> cp -r /etc/skel/* /home/USERNAME </code>
26 Change ownership of all files and directories in the user's home to that of the affected user:
27 <code> chown -R USERNAME:USERGROUP /home/USERNAME/* </code>
28 Restore the shell options:
29 <code> shopt -u dotglob </code>
30 The essential files should now be restored!
32 EDIT:
34 <code> shopt -u dotglob </code>
35 is not working in slitaz-3.0.iso - instead of this run in addition:
36 <code> chown -R USERNAME:USERGROUP /home/USERNAME/.[a-zA-Z0-9]*</code>
37 ----