Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-09-2003, 11:32 PM   #1
LQ Newbie
Registered: Dec 2003
Distribution: conectiva, debian
Posts: 5

Rep: Reputation: 0
Smile 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?)?
Old 12-10-2003, 11:46 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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! ).

Old 12-10-2003, 06:12 PM   #3
LQ Newbie
Registered: Dec 2003
Distribution: conectiva, debian
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up 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.
Old 12-10-2003, 08:45 PM   #4
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
drwxrwxrwt 48 root root 12288 Dec 10 19:33 tmp

you might want to run chmod +t


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 04:41 PM
startx works for root but not users aldenfuchs Red Hat 3 04-01-2005 11:28 AM
Bug / Xwindows / startx : xinit works but startx crash Linux - Software 4 10-17-2004 09:06 AM
startx does nothing, yet X still works dtheorem Linux From Scratch 2 08-23-2004 03:28 AM
Gnome works but not with startx command lil_critter99 Linux - Software 1 12-14-2001 06:05 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration