LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2003, 05:37 AM   #1
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
startx won't work as user


Hi!!!

I've been searching the forum after an answer for this. I've just installed Slackware 9.0 in one of my boxes. The installation was way fast and smooth, and so was to use it. The problem is, when I add an user with adduser, this user cannot startx.
There's no problem with root, who can startx without a problem. I've also run xf86config, but it was not much of help. Believing I would need to run xf86config as user would fix, at the end of the configuration I was unable to write to the file (that's ok....).

Question. Do I have to put anything at /home/user to be able to startx? (I'm trying to run KDE, but any desktop would be nice).

This have been discussed loads of times at the forum, but many who got it to work, just said "I figure it out myself, thanks", and don't post how they did it.. (arghhhhh).

Any ideas? Thanks in advance.
 
Old 07-25-2003, 06:36 AM   #2
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
Try running X as root and create a new user through KDE.

By the way. Does anyone remember the command to set the default window manager from a blue screen? It's xsomething.

Last edited by snocked; 07-25-2003 at 06:37 AM.
 
Old 07-25-2003, 07:19 AM   #3
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Or ofcourse you can try to copy the .xinitrc file from /root to your users home directory and then try to start X. Hope this helps!
 
Old 07-25-2003, 07:38 AM   #4
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Rep: Reputation: 30
Snocked, it's xwmconfig i believe. Megaman, what are the permissions of XFree86 (ls -l /usr/X11R6/bin/XFree86)? It needs to be -rws--x--x
 
Old 07-25-2003, 07:42 AM   #5
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
Yes, thank you, it's xwmconfig

What's the s stand for in -rws--x--x ?

Last edited by snocked; 07-25-2003 at 07:44 AM.
 
Old 07-25-2003, 07:59 AM   #6
BigBadPenguin
Member
 
Registered: Jun 2003
Location: Warwick (.ac.uk)
Distribution: Arch, Slackware 9.0, (knoppix standing by)
Posts: 256

Rep: Reputation: 30
Set UID root, any user can run it, but it's as if it's being run by root, so has access to logs, etc/ files and more that a user wouldn't be able to access but are necessary to run X (i'd never heard of it either http://www.linuxquestions.org/questi...threadid=73559 )

anyway, if it isn't set already, say
Code:
chmod u+s /path/to/XFree86
 
Old 07-25-2003, 08:51 AM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 65
Thumbs up LQ rocks, as always!

Guys thanks a lot for you help. I've finally got it to work. I'm not pretty sure what fixed it (maybe, this is the same reason why many only posted "Thanks, I fixed it".
I've done two things. First I deleted my user, added a new one from kde. I've tried to set UID to 0 (root), but returned me as UID already exists.

I then went to command line again, and did ls -l as suggested. it was only rw-x--x-root. I used the chmod command described above by BigBadPenguin and it change to rwS-x--x-root.
I tried again to run startx, did not work. I've rebooted "ala" winslow and it worked.

If it was the chmod or the kuser, I dunno, but if someone faces the same problem try both.

Thanks again for the help to everybody in this thread. Ufa, for a minute, I almost give up from Slack, first mouse, then keyboard, then monitor, then users... all without a wizard....ghehe... well, up and running. I'm going to format and do everything again till I learn.

Thanks again
 
  


Reply



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
Can startx as root, not as User Swampy Debian 4 03-19-2005 05:04 AM
Why can I startx with user. whutxuan Linux - Software 0 11-16-2004 03:41 AM
startx doesn't startx for user vdemuth Mandriva 10 11-08-2004 07:41 PM
Can't run startx as user. ifunniest Linux - Software 5 09-19-2003 12:14 AM
user can't startx synaptical Slackware 7 07-12-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:44 PM.

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
Open Source Consulting | Domain Registration