LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-09-2003, 10:32 PM   #1
rbrasil
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?)?
Thank's
Ricardo.
 
Old 12-10-2003, 10:46 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 57
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
 
Old 12-10-2003, 05:12 PM   #3
rbrasil
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, 07:45 PM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

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


you might want to run chmod +t
 
  


Reply


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 03:41 PM
startx works for root but not users aldenfuchs Red Hat 3 04-01-2005 10:28 AM
Bug / Xwindows / startx : xinit works but startx crash www.rzr.free.fr Linux - Software 4 10-17-2004 08:06 AM
startx does nothing, yet X still works dtheorem Linux From Scratch 2 08-23-2004 02:28 AM
Gnome works but not with startx command lil_critter99 Linux - Software 1 12-14-2001 05:05 AM


All times are GMT -5. The time now is 03:39 AM.

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