LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   startx won't work as user (https://www.linuxquestions.org/questions/slackware-14/startx-wont-work-as-user-75780/)

Mega Man X 07-25-2003 05:37 AM

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.

snocked 07-25-2003 06:36 AM

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.

wonderpun 07-25-2003 07:19 AM

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!

BigBadPenguin 07-25-2003 07:38 AM

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

snocked 07-25-2003 07:42 AM

Yes, thank you, it's xwmconfig

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

BigBadPenguin 07-25-2003 07:59 AM

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

Mega Man X 07-25-2003 08:51 AM

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


All times are GMT -5. The time now is 11:43 AM.