Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-19-2007, 10:42 PM
|
#1
|
|
Member
Registered: Feb 2007
Posts: 31
Rep:
|
Trouble Starting X as Normal User
Hey,
I'm pretty new to Linux, though I've very casually used it off and on for a few years. But I've decided to finally make the move from Windows and I thought it would be a great learning experience to try Linux From Scratch.
Well, it sure has been a great experience so far. I decided to use the User Package Management System (which may have a bearing on my problem) on this first time through (it's the one where each package that you install is done so under a different user and so on, it's also the one they talk about in the LFS book).
All has gone well until now. I've got a good system installed with X, Fluxbox and KDE all working. I even have got my wireless working (via ndiswrapper) and some other stuff. But I've got to the point where I really wanted to start using this system in my everyday life, so I thought I'd create a normal (non-root) account and this is where I've run into problems.
The new user account seems to work okay until I try to run X. When I do this I get the following error.
Cannot move old log file /var/log/Xorg.0.log to /var/log/Xorg.0.log.old
Now, I CAN change the permissions on the /var/log folder to let anyone do anything to it (likely a bad idea) and X will load past this point. But it will then fail later down the line in the loading process. So the problem has something to do with the way I've set up this user.
Also, I checked a Gentoo installation and the /var/log seems to have the same permissions that my folder has, so that's not it. Like I said, it's got to be something with the way I've set up the user, or X or something.
Maybe I've just simply forgotten something very basic and boneheaded, something that is just assumed everyone should know.
Right now I'm back in Window (in VISTA no less) writing this because I don't like surfing the net as root. It's very depressing.
Any help would be appreciated.
Thanks,
Bob
|
|
|
|
10-19-2007, 10:49 PM
|
#2
|
|
Member
Registered: Feb 2007
Posts: 31
Original Poster
Rep:
|
Oh yeah, running X as root works just fine, as does everything else when running as root. It's only when I run X as a normal user that I have problems.
Thanks,
Bob
|
|
|
|
10-20-2007, 04:58 AM
|
#3
|
|
Member
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Rep:
|
Quote:
|
All has gone well until now. I've got a good system installed with X, Fluxbox and KDE all working.
|
Now that's impressive. Kudos.
Anyway it sounds as if the X binary has inappropriate permissions. Find $XORG_PREFIX/bin/X and ensure it is owned by root:root and has 6755 permissions (rwsr-sr-x).
I'm just going by X on my system. I didn't have to change any permissions manually. It may well have something to do with the "User Package Management System". If it is what I think it is (will do some reading later), then you may run into more problems with programs that have to run suid.
|
|
|
|
10-21-2007, 10:39 AM
|
#4
|
|
Member
Registered: Feb 2007
Posts: 31
Original Poster
Rep:
|
Daws,
Thank you for answering my post. Unfortunately, changing the permissions on my X executable does not seem to fix the problem.
Can you think of anything else that might cause this?
Thanks,
Bob
|
|
|
|
10-21-2007, 02:04 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2007
Posts: 5
Rep:
|
I take it you've installed both X and kde and fluxbox (and probably everything else in blfs) with the root account?
I'm having the same problems (can't start kde as a normal user) and I'm guessing it has something to do with the way I installed everything (as root instead of normal user like the book said)
|
|
|
|
10-21-2007, 05:59 PM
|
#6
|
|
Member
Registered: Feb 2007
Posts: 31
Original Poster
Rep:
|
Jwizzman,
Hey that’s a good idea, but I installed all my packages under what they call a “package user,” a different user for each package. So, for instance, I installed X using the “Xorg-6_9_0" user and so on.
There has to be some way that you set up the “users” group that the book doesn’t cover or something. At least, that is what I’m thinking right now.
Bob
|
|
|
|
11-06-2007, 08:55 AM
|
#7
|
|
Member
Registered: Feb 2007
Posts: 31
Original Poster
Rep:
|
This note is for DAWS.
DAWS, your ROCK!! I don't know what I was thinking before, I swear I tried you suggestion correctly, but I guess I didn't. Anyway, after struggling for awhile after you made you suggestion I came back and tried it again (actaully for the first time, but I thought it was 'again') and everything worked fine. So thank you for all your help!
I've had to make similar changes to kde to get it to run with normal user too.
Anyway, thanks!
Bob
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|