bash root@101/udp
Hello,
I am running centos 5, I was working on getting vsftp up and running. I made a mistake with trying to restart the server via /etc/services. I changed the permissions to the etc dir so I could ./services which I now know I was in the wrong location and should not have changed the permissons. My issue from this is in the bash at the command line [root@101/udp fred], I don't know what changed it to @101/udp. I tried to look at all bashrc, .bashrc, .bash_profile, I could not see anything. When I am sitting at the server its not listed as @101/udp only when I connect via ssh. Any help to resolve this would be appreciated. Thank you, Keith |
Can you give the response for:
#echo $PS1 when connected via SSH? Are you inheriting the environment variables? # env As you wrote, they are inherited from /etc/profile, $HOME/.bash_profile and $HOME/.bashrc As you are aware of some wrong permissions you specified, did you correct them exactly as they were before? |
Quote:
This is what I get from echo $PS1 [\u@\h \W]\$ env OSTNAME=101/udp TERM=linux SHELL=/bin/bash HISTSIZE=1000 KDE_NO_IPV6=1 SSH_CLIENT=24.24.5.73 28957 22 QTDIR=/usr/lib/qt-3.3 QTINC=/usr/lib/qt-3.3/include SSH_TTY=/dev/pts/3 USER=keyboard112 LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31; 01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=0 1;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.ja r=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=0 1;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01; 35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*. mpc=01;35:*.ogg=01;35:*.wav=01;35:*.php=01;31:*.html=01;31:*.htm=01;31: SSH_AUTH_SOCK=/tmp/ssh-yzgXt11480/agent.11480 KDEDIR=/usr MAIL=/var/spool/mail/keyboard112 PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/keyboard112/bin INPUTRC=/etc/inputrc PWD=/home/keyboard112 LANG=en_US.UTF-8 KDE_IS_PRELINKED=1 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SHLVL=1 HOME=/home/keyboard112 LOGNAME=keyboard112 QTLIB=/usr/lib/qt-3.3/lib CVS_RSH=ssh SSH_CONNECTION=24.24.5.73 28957 192.168.2.138 22 LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/bin/env I see it listed next to the HOSTNAME, why would that have been changed this way? Thanks again Keith |
OK, I'm confused, I've never used Centos myself, but on none
of the distro's I've had my hands on in the past (including RH, which Centos supposedly mimics) /etc/services was a script- file, but rather just a text-file that holds mappings from port to name .... how do you "run" this? Oh ... heh. I see the "error of your ways", I guess. There should be a lot of error messages when the box boots, and by happenstance the line with the hostname "works", it sets the name to exactly that, 101/udp. Remove the execute bit from services, please, it's NOT a script. Cheers, Tink |
Quote:
Thanks Tink I don't even want to admit what I did, it will just show how green I am :) I had the right thoughts but I was in the wrong place, I guess I should stop when I am ahead of the game and lacking sleep!! Thanks again, Keith |
All times are GMT -5. The time now is 09:26 AM. |