LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Cannot startx except as root (https://www.linuxquestions.org/questions/slackware-installation-40/cannot-startx-except-as-root-136445/)

dieb 01-19-2004 03:08 PM

Cannot startx except as root
 
Greetings. I am working with Slackware 9.1 and am experiencing a slight problem. I can run KDE perfectly as root, however I am unable to run X as a user. Whenever I logon as said user I get the error message startx: command not found. I am assuming there is a file I need to edit to get this running correctly, however after reading the man pages and googling I have had no luck in finding the correct solution. Please help a new slackie.

::dieb::

jailbait 01-19-2004 03:21 PM

"Whenever I logon as said user I get the error message startx: command not found."

The first thing I would check is the permissions for the startx command. Mine are set to 755.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

dieb 01-19-2004 04:24 PM

-rwxr-xr-x 1 root bin 3.2K Sep 16 18:15 startx*

Permissions look ok to me (i think).... thanks for the quick reply though... still investigating whether there is a wrapper or something I need to be addressing here, atm just reading up on permissions to make sure they are ok.

(Edited: turns out my permissions were set wrong DOHHH!) thanks a ton for helping me out, ended up I learned about chmod! YAY! Thanks again. Case closed.)

jailbait 01-19-2004 04:49 PM

Is startx on the PATH for user? Try:
which startx
for both root and user.


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

wbeck85 03-03-2005 12:52 PM

Hello, I have the same problem. I can log in as user at runlevel 3 but when I try to get to X "# startx" I get "startx: command not found"

Everything works perfectly well as root. It sounds like the above solution works well, but I am a new user and dont know how to edit the permissions on the command "startx"

Please help.

I'm using Yoper 2.2 prerelease.

Emanon 03-08-2005 08:06 AM

Quote:

Originally posted by wbeck85
Hello, I have the same problem. I can log in as user at runlevel 3 but when I try to get to X "# startx" I get "startx: command not found"

Everything works perfectly well as root. It sounds like the above solution works well, but I am a new user and dont know how to edit the permissions on the command "startx"

Please help.

I'm using Yoper 2.2 prerelease.

first locate where the program "startx" is. use the command "whereis"

#whereis startx

you should probably find it in /usr/bin/X11/startx or similiar. (if you don't have whereis, try "locate")
and then you can run startx by writing the whole path in the command line.
if you suspect the permissions are wrong then write

#chmod 755 /path/to/startx

and all should be set.

Grunthos 03-08-2005 06:22 PM

You just need to have /usr/X11R6/bin in your PATH variable. (a default install should set permissions correctly but its always good to check.

if it is not there ( echo $PATH ) then add it in the system wide env setup (/etc/profile ?)

or at the command line if you just want to test first: export PATH=$PATH:/usr/X11R6/bin


-grunthos


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