Jezza Posted June 29, 2004 Report Share Posted June 29, 2004 (edited) HELP!!! I dunno what I changed, but I suddeny can't get into X when logging in as anyone other than root. Root will log in fine, but other users can't. I get error messages saying bash files can't be found... -bash: dircolors: command not found -bash: locale: command not found -bash: tty: command not found -bash: tty: command not found -bash: head: command not found when I type startx when logged in as myself, is says command not found, however, when I do it as root, it boots into the xwindows. It's starting to annoy me, now, too. Does anyone have any idea what I need to do? Edited June 29, 2004 by Jezza Quote Link to comment Share on other sites More sharing options...
Gowator Posted June 29, 2004 Report Share Posted June 29, 2004 sounds like your user has no PATH export PATH=xxxxxx in your .bashrc file in home. the easiest fix is probably to create a new user and copy the .bash* to the damaged one... its always a good isdea keeping a test user anyway... for testing things that might screw KDE/Gnome like themes for the worng version etc. also you can startx when you boot using a login manger.... (you can set this in the MCC) or drakxconf Quote Link to comment Share on other sites More sharing options...
Jezza Posted June 29, 2004 Author Report Share Posted June 29, 2004 (edited) also you can startx when you boot using a login manger.... (you can set this in the MCC) or drakxconf Erm... yeah... I do that usually anyway. I use KDM to login, and if I login as root,it automatically goes into KDE,but if I login as me, it goes back to a command line login, and that's when I get those error messages... Also, where it says xxxxx in your post, what am I supposed to type there? And where abouts in .bashrc do I type this? Edited June 29, 2004 by Jezza Quote Link to comment Share on other sites More sharing options...
tyme Posted June 29, 2004 Report Share Posted June 29, 2004 Gowator is probably right on the money. What does your .bashrc look like? Quote Link to comment Share on other sites More sharing options...
Jezza Posted June 29, 2004 Author Report Share Posted June 29, 2004 (edited) OK.... I created a new user, called "new" and I got the same errors when trying to log in as them. I also tried copying all the default bash files from /home/new to my home direcroty, and still nothing Edited June 29, 2004 by Jezza Quote Link to comment Share on other sites More sharing options...
Jezza Posted June 29, 2004 Author Report Share Posted June 29, 2004 What does your .bashrc look like? # .bashrc #User specified aliases and functions #Source global definitions if [ -f /etc/bashrc ]; then ./etc/bashrc fi Hope this is useful!!! Quote Link to comment Share on other sites More sharing options...
Gowator Posted June 29, 2004 Report Share Posted June 29, 2004 yep....that helps :D post /etc/bashrc .. that would explain why its including the new user too... there's also a .bash_profile ... also just type echo $PATH as the user and it will say what it is.... post it here... xxx ... kinda hard to say without being at alinux machine but /bin;/sbin;/usr/bin etc.. and probably most important /etc/X11/bin... Quote Link to comment Share on other sites More sharing options...
Jezza Posted June 29, 2004 Author Report Share Posted June 29, 2004 (edited) yep....that helps :D post /etc/bashrc OK, here it is... # /etc/bashrc # System Wide functions and aliases # Environment stuff goes in /etc/profile # by default, we want this to get set, # Even for non-interactive, non-login shells. if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then , umask 002 else , umask 022 fi # are we an interactive shell? if [ "$ps1" ]; then case $term in xterm*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' ;; *) ;; esac [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ " if [ -z"$loginsgh" ]; then #We're not a login shell for i in /etc/profile.d/*.sh; do .$i fi done fi fi unset loginsh there's also a .bash_profile ... I hope you mean the one in my home dir... cos this is the one I typed out... # .bash_profile # Get the aliases and functions if [ .f ~/.bashrc ];then . ~/.bashrc fi User Specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME Just so I know... If I were to add a line to that at the bottom to indicate where my JavaVM is located would it be OK just stuck on the bottom? also just typeecho $PATH as the user and it will say what it is.... post it here... it said... /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin Edited June 29, 2004 by Jezza Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.