startx only works as root
After I installed x-window-manager on my computer, I decided to move some directories to others partitions, directories like /home, /tmp and /var. With /home and /tmp there are no problems. After I rebooted the computer, that was fine. When I tried to move the /var directory, I created the new file system, mounted /mnt/var to it and copied all the files from /var to it (cp -a /var/* /mnt/var/).
As I didn't set the runlevel to 1, and didn't stop the x-window, it was loaded when I rename the /var directory to /var.old. After that, I created the new /var directory and mounted it to the new partition. I updated my fstab with that mount point. While I was rebooting the computer, I've noted an error in the x-window screen. After I reboot the computer, I can't log on the X with my default user, unless I execute the su - command on the console before call startx. Anyone could help-me? I have to reinstall the linux-debian? Or I have to reinstall only the x-window-manager? In this case, what is the best way to do this (apt-get remove and apt-get install?)? Thank's Ricardo. |
Before doing anything drastic, check the XFree86 error log. You will find it in /var/log, and it's very verbose and helpful when it comes to solving problems (hey, that's what it's there for! :)).
Håkan |
that's ok
Thank's, the problem was resolved.
When I was logged as my default user, i tried to call the 'man' command, but an error occurred, saying that was not possible to create the temporary file. Then I looked to the rights to the /tmp dir (one of the dirs that I moved to another partition) and I saw that I did'n have rights of write on that dir. When I changed that (chmod o+w /tmp), I started X without problems. |
drwxrwxrwt 48 root root 12288 Dec 10 19:33 tmp
you might want to run chmod +t |
All times are GMT -5. The time now is 02:48 PM. |