LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 01-19-2004, 03:08 PM   #1
dieb
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
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::
 
Old 01-19-2004, 03:21 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"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
 
Old 01-19-2004, 04:24 PM   #3
dieb
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Original Poster
Rep: Reputation: 0
-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.)

Last edited by dieb; 01-19-2004 at 04:49 PM.
 
Old 01-19-2004, 04:49 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
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
 
Old 03-03-2005, 12:52 PM   #5
wbeck85
LQ Newbie
 
Registered: Feb 2005
Posts: 7

Rep: Reputation: 0
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.
 
Old 03-08-2005, 08:06 AM   #6
Emanon
LQ Newbie
 
Registered: Jun 2003
Distribution: SuSE 8.1
Posts: 29

Rep: Reputation: 15
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.
 
Old 03-08-2005, 06:22 PM   #7
Grunthos
LQ Newbie
 
Registered: Mar 2005
Location: Sydney, Australia
Distribution: Slackware 10.2
Posts: 20

Rep: Reputation: 0
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
 
  


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
Cannot startx as non-root user paul.nel Linux - General 1 04-07-2005 02:51 PM
Can startx as root, not as User Swampy Debian 4 03-19-2005 05:04 AM
unable to startx as non-root user raska Slackware 7 11-22-2004 06:41 PM
Only root can startx lamedavis Linux - Software 3 02-23-2004 11:46 PM
startx only works as root rbrasil Debian 3 12-10-2003 07:45 PM


All times are GMT -5. The time now is 07:14 AM.

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