LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2008, 10:22 PM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Unhappy Cannot startx as a user only root


Hi guys, I did a fresh install of slackware and now I cannot startx as me only as root.

When startx this is the error I get
Quote:
Could not move (/var/log/xorg.0.log to /var/log/xorg.0.old)
I looked that the xorg log but that did not seem to help.

Also, I don't know if this really matters, but I put /var on its own partition with 2 gigs.

I would greatly appreciate your help.
 
Old 03-18-2008, 01:17 AM   #2
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
I searched and searched the web and could not find resolutions only the same problem.

What I did to resolve things is
1. Installed fresh install
2. At root before logging into x I useradd myself and passwd for myself.
3. Exit
4. Logged in as myself and startx.

It worked
okos
 
Old 03-18-2008, 09:36 AM   #3
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
file permission

I suppose it must have been a permission problem.

Have you copied /var to it's new location in a way that might have changed some permissions? That would explain why only root was able to use it.

Your problem is solved, but it's strange anyway - would be good to know what it was.

Regards,
SIMP

Debian User

Last edited by simplicissimus; 04-02-2008 at 05:44 AM.
 
Old 03-18-2008, 11:51 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Is /var still a separate partition? Or is it now a normal directory? I think that you did not have the correct permissions in the file /etc/fstab
 
Old 03-18-2008, 11:11 PM   #5
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Guys, thanks for the input.

I am not sure what the problem was. I wasted hours trying to figured it out. I changed permission of both /var/log/xorg.0.log and /var/log/xorg.0.log.old to 777 and still no go. One user had a problem with kde and after upgrade everything worked. One person said rm -fr /temp/*. I don't know what good that would do. Blah blah blah... I said forget it! I just followed the link below. I had just done a fresh install, why not do it again.

I googled, "Could not move (/var/log/xorg.0.log to /var/log/xorg.0.old) "
found lots of similar issues as well as a debian bug report.

Finally I found this link which does not really solve the problem. It just suggests to do the following: Install clean version; useradd as root and not startx; logout as root; login as user; startx. It worked.
 
Old 03-19-2008, 09:04 PM   #6
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Wim Sturkenboom View Post
Is /var still a separate partition? Or is it now a normal directory? I think that you did not have the correct permissions in the file /etc/fstab
I think you are sort of on the money. I was able to cause the error again.

My root is on hdc6.

Here is my undedited fstab
Quote:
/dev/hdc6 / reiserfs defaults 1 1
/dev/hdc7 /var reiserfs defaults 1 2
#/dev/hdc1 /win ntfs ro 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hdc1 /win ntfs-3g rw,auto,user,exec 0 0
/dev/hdc5 /t ext3 defaults 0 0
I was fiddling with fstab and I got the same error. This is what it looked like when I was done messing with it:
Quote:
/dev/hdc6 / reiserfs rw,auto,user,exec 1 1
/dev/hdc7 /var reiserfs defaults 1 2
#/dev/hdc1 /win ntfs ro 1 0
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hdc1 /win ntfs-3g rw,auto,user,exec 0 0
/dev/hdc5 /t ext3 defaults 0 0
I don't know why, but I wanted the hdc6 to show as a mounted partition on my kde desktop. It shows as umounted. However, I am able to login, and see my root directory. Why does it not show as mounted?
 
  


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
user can't startx, only root can lindberg.bill Slackware 4 01-14-2007 05:15 PM
Cannot startx as non-root user paul.nel Linux - General 1 04-07-2005 03:51 PM
Can startx as root, not as User Swampy Debian 4 03-19-2005 06:04 AM
unable to startx as non-root user raska Slackware 7 11-22-2004 07:41 PM
Can't startX as user (KDE 3.1)... root is fine Spislander Debian 1 01-01-2004 09:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration