There are several things worth checking.

1. You say the permissions "look right", but you don't say what they are.
Both directory and file need to be mode 755. bash can't search directories
that the user doesn't have permission to read. A user can't cd to a
directory unless the user has execute permission for it. So ... see if the
user is able to run "/usr/X11R6/bin/startx" successfully but is unable to
run just "startx" (because bash can't find it - you can try using "which" as
well). This means a problem with the directory permissions. If the user
cen't run either version of the command, either the actual file permissions
are wrong or something else is the problem.

2. startx is not the only file that needs to be mode 755 So does xinit,
which it will call, and the X server itself.  What filename precedes the
"command not found" message? I've been assuming you see a line that reads
"bash: startx: command not found". But the problem could be permissions on
one of these other files - the filename in the bash error message will tell you.

3. Also make sure that the user's actual PATH includes /usr/X11R6/bin, not
just the default profile (which can be overwritten). Do this with "env |
more" and look for the PATH entry. I noticed you wrote etc/profile below
where you should have written /etc/profile, and usr/X11R6/bin where you
should have written /usr/X11R6/bin  ... so make sure the actual PATH entries
in /etc/profile and the user environment include the (very necessary)
leading slash.

At 02:19 PM 5/4/99 -0400, [EMAIL PROTECTED] wrote:
>       I'm not sure what caused it, perhaps installing a program ( I 
>believe I may have installed a new program in my last session 
>before the problem arose).  I only have a root account and a user 
>account for myself on my machine.  All of a sudden, when I try to 
>start X from my user account by typing startx, I get a command not 
>found error.  However, X starts normally from the root account.  
>Using the root account I have verified that startx is in the 
>usr/X11R6/bin directory where it belongs and that the default path 
>in my etc/profile points to that directory.  Moreover, the file 
>permissions for the directory and file appear to be correct when I 
>examine them with the info function of TkDesk.  However, when I 
>try to cd to the directory from the console using my user account, 
>access to the directory is denied.  I would appreciate any help in 
>diagnosing this problem.
>
>
------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
762 Garland Drive
Palo Alto, CA  94303-3603
650.328.4219 voice                              [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to