LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-01-2003, 05:15 PM   #1
jstef
LQ Newbie
 
Registered: Jan 2003
Distribution: Slackware 8.1
Posts: 28

Rep: Reputation: 15
Random problems with startx


I am having a fairly random problem running startx. If I start the computer, login as a user and immediatly run startx, then xwindows starts just fine. However, if I switch users with su, then type startx, I get the error "startx:command not found". Any ideas on why this might be happening?

Thanks everyone!
 
Old 02-01-2003, 05:29 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Does it happen with all users?
 
Old 02-01-2003, 05:29 PM   #3
jelly
LQ Newbie
 
Registered: Jan 2003
Location: London, UK
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
could be a permissions problem for the user you are su-ing to? my startx is in /usr/X11R6/bin/ and everyone has r-x access to startx and to the parent directory.
 
Old 02-01-2003, 06:45 PM   #4
jstef
LQ Newbie
 
Registered: Jan 2003
Distribution: Slackware 8.1
Posts: 28

Original Poster
Rep: Reputation: 15
It happens with all users... I can actually shut X down and then startx again, but if I su to another user and try to startx, it doesn't work.
 
Old 02-02-2003, 04:23 AM   #5
jelly
LQ Newbie
 
Registered: Jan 2003
Location: London, UK
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
in the man entry for su it says:

The current environment is passed to the new shell. The
value of $PATH is reset to /bin:/usr/bin for normal users,
or /sbin:/bin:/usr/sbin:/usr/bin for the super user.

so bearing in mind the command 'startx' is in /usr/X11R6/bin/ it's not on your path.

One way to fix it might be to create a sim link to startx in /usr/bin

cd /usr/bin
ln -s /usr/X11R6/bin/startx startx

then it will be in the path of the user you su to.
 
  


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
xmms, firefox. display problems, random freezing the_low Linux - Software 1 08-28-2005 08:54 AM
Random System Hangs (Due to HD problems? ) webnoelle Linux - Hardware 2 07-28-2004 08:31 PM
Creating random numbers from shell with /dev/random khermans Linux - General 1 07-13-2004 01:12 PM
Python problems trying to generate a random number davholla Programming 0 10-27-2003 05:07 AM
random problems with Mozilla and more infamous41md Linux - Newbie 2 04-11-2003 01:11 PM


All times are GMT -5. The time now is 08:22 PM.

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