(t)c shell problem and ssh


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users (t)c shell problem and ssh
# 1  
Old 09-27-2010
(t)c shell problem and ssh

I have recently discovered an annoying problem with some of our Linux boxes (running Opensuse 11.3) that is defying our attempts to resolve.

If I (or anyone else using c shell) log in remotely to 2 of our Opensuse 11.3 machines with ssh, then they cannot run a lot of software. It seems that $PATH is not synchronised with $path and $PATH appears to be read only. Furthermore echo $PATH does not return the same thing as printenv $PATH.

A third machine running Opensuse 11.3 is fine. Also if I log in to these machines on the console, they are fine!

We cannot determine the cause (and solution).

Any ideas?

Andrew Smilie
# 2  
Old 09-30-2010
You might want to try printenv PATH instead of printenv $PATH.

'PATH' and 'path' are different variables, yes. You should only be using PATH to define the PATH.

What do you mean by 'read-only'? If you alter it in the shell itself with export PATH="${PATH}:stuff" does "echo $PATH" show the changes? The changes naturally won't persist next time you login, being defined by your login scripts and not what you type in the shell.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with ssh -n IP

I am able to login to server x from y in shell script. But after that command is get executed on server y. I need the command to be executed on server x. Ex. ssh -n 0.0.0.X ls -ltr Above script I am executing from 0.0.0.Y I got result but it executed on server Y server. But when I use ssh... (4 Replies)
Discussion started by: babapatil14
4 Replies

2. Solaris

ssh problem

Hi Guys, when I try to login to one of my sun server (sparc) from within an open putty session on another server I get this message: bash-3.2$ ssh 10.0.0.10 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (1 Reply)
Discussion started by: cjashu
1 Replies

3. UNIX for Dummies Questions & Answers

Problem in ssh

Hi whenever i try to do any ssh related activity like. ssh <servername>, scp some files to a server i get =true I have checked modt message but nothing is there. I can able to get the ssh session but for scp, =true prompt get displayed but nothing happens. For example: # scp file1.txt... (5 Replies)
Discussion started by: pinga123
5 Replies

4. Shell Programming and Scripting

SSH problem

Hi , I have this piece of code. for xyz in `grep "$envir $envtype" ~/user/Move/config/ProdEnvList|cut -d "|" -f11` do username=`cat ~/user/Move/config/ProdEnvList|grep $xyz|cut -d "|" -f7` hostname=`cat ~/user/Move/config/ProdEnvList|grep $xyz|cut -d "|" -f6` ssh $username@$hostname -n 'cd... (2 Replies)
Discussion started by: debu182
2 Replies

5. Shell Programming and Scripting

ssh script problem problem

Hi Please help me with the following problem with my script. The following block of code is not repeating in the while loop and exiting after searching for first message. input_file ========== host001-01 host001-02 2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies

6. UNIX for Advanced & Expert Users

ssh problem

hi all! i'm trying to make ssh connection between COMP1 to any computer on my network and i get this error: "Host key verification failed." any computer can access COMP1 in ssh... i have already deleted the "known_hosts" and "authorized_keys" files and created them again... any1 have an... (1 Reply)
Discussion started by: eliraza6
1 Replies

7. AIX

ssh problem

I thought I had seen all errors in SSH but the following is new to me: buffer_get: trying to get more bytes 129 than in buffer 6 Anyone seen this before please? Google search returns nothing of use that I can see. I am running an lpar on a 52A and the O/S is AIX 5.3 TL 4CSP. (2 Replies)
Discussion started by: johnf
2 Replies

8. UNIX for Dummies Questions & Answers

Problem with SU or SSH in shell script

Hi Floks! This is Sravan! I am new to linux and I am trying to write bash shell script in which I want to change the user but the statements which are after the "su " command are not working that I mean I want to execute some statements as the changed user here is the code ... (2 Replies)
Discussion started by: sravanp
2 Replies

9. UNIX for Advanced & Expert Users

SSH v2 problem

Hi, What the problem is that we have a client that has now decided to use SSH protocol 2 only for their internal security audit. This is not a problem except now our SCO system will not connect. I can connect with putty from a windows box fine until the SCO system tries to access which then... (0 Replies)
Discussion started by: Bilb
0 Replies

10. UNIX for Advanced & Expert Users

SSH Problem auth problem

Hi, Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode: warning: You have no controlling tty. Cannot read confirmation.^M warning: Authentication failed.^M Disconnected; key exchange or algorithm negotiation... (1 Reply)
Discussion started by: budrito
1 Replies
Login or Register to Ask a Question