LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2008, 02:38 AM   #1
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Rep: Reputation: 15
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
 
Old 06-30-2008, 02:58 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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?
 
Old 06-30-2008, 03:50 AM   #3
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ChrisAbela View Post
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?
Hello,

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;36i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31; 01:su=37;41:sg=30;43:tw=30;42w=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
 
Old 06-30-2008, 04:31 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 06-30-2008, 05:14 AM   #5
keyboard1973
Member
 
Registered: Jun 2008
Posts: 52

Original Poster
Rep: Reputation: 15
Wink

Quote:
Originally Posted by Tinkster View Post
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

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
 
  


Reply



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
linux 101 - need help understanding a question about root mtdew3q Linux - General 4 05-12-2008 08:57 PM
Root user bash shell look like "bash-2.05b#" and /root empty y2pk001 Linux - Security 6 03-22-2007 08:33 PM
uknown url type udp when using a udp tracker fakie_flip Linux - Software 1 08-03-2006 05:03 AM
UDP: Short Packets: and UDP bad checksum: entries in dmesg minutes2memories Linux - Networking 2 02-26-2006 07:28 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration