Path problems
I've just installed Slackware 11.0 and it's my first attempt to seriously replace Windows. I've dabbled in Linux before but I'm a newbie.
This is baffling me. I can start X as root using the startx command but if I su to another user it tells me "Command not found". Then if I su back to root it gives me the same error even though it worked before changing users. /etc/profile contains: PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games" but when I type "echo $path" it just returns a blank line. Am I missing something obvious here? |
It's because su starts another instance of bash. And it does _not_ run your profile. If you want to read the profile, I think that command "su -" does the job.
|
Instead of "echo $path"
try "echo $PATH" instead. Hope that helps some. Really shouldn't be starting X as root though ;] |
Quote:
|
I'm not really sure what was wrong but deleting and readding the user account fixed the problem.
Thanks for the su - user tip, I had no idea it didn't load your profile. |
And remember ... Linux is case-sensitive ... unlike some other OSs.
|
All times are GMT -5. The time now is 05:44 PM. |