Visit Our UNIX and Linux User Community


ERROR: "/bin/ksh: Not owner"


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ERROR: "/bin/ksh: Not owner"
# 1  
Old 09-18-2009
ERROR: "/bin/ksh: Not owner"

When ssh'ing into certain Unix boxes I'm seeing two errors that appear immediately after entering the password I've never seen. After the error message is displayed the connection closes immediately. The first is /bin/ksh: Not owner after which the connection is closed. And, 迭ead from remote host he2lnxweb-3: Connection reset by peer.

Any help with understanding what is going on greatly appreciated

twk
# 2  
Old 09-18-2009
Gonna need some more info....
  1. What is the exact action/output sequence you see?
  2. What versions of OS are the systems that fail?
  3. What OS versions of systems that work?
  4. Anything change recently (patches? upgrades? etc...)
# 3  
Old 09-18-2009
ERROR: "/bin/ksh: Not owner" Reply to Thread

What is the exact action/output sequence you see?

$ ssh user@host
Enter your LAN Password:
Last login: Fri Sep 18 09:38:27 2009 from host.f
/bin/ksh: Not owner
Connection to host closed.


Responding to the rest of the questions is somewhat problematic since I can not get into and stay in the host!

If it helps what I've done is write a script to test the access of a several hosts and related directories for a particular username. The hosts are in the enterprise network but not hosts in which I normally work.

The curious thing is that if I use my personal credentials to access the host I can but when I do a uanme -a the name of the host that appears in not the one I use to ssh to?

SunOS Z<different host name> 5.10 Generic_141414-02 sun4u sparc SUNW,SPARC-Enterprise
  1. What versions of OS are the systems that fail?
  2. What OS versions of systems that work?
  3. Anything change recently (patches? upgrades? etc...)


---------- Post updated at 10:55 AM ---------- Previous update was at 10:40 AM ----------

I did a nslookup on the host name used with the ssh command and it is an alias to the host name provided by the uname -a. Additonally, and not supprisingly, when I ssh to the canonical name I get the same response.
# 4  
Old 09-18-2009
I'm guessing that the default shell for your username on the remote host is /bin/ksh.

I wonder if the protection for /bin/ksh is screwed up, not 755, but maybe 744. That is, maybe you don't have execute privilege for some reason. The system administrator (or someone with root privilege) will have to straighten that one out.
# 5  
Old 09-18-2009
Or maybe the home directory is not owned by the login account.

You said you could login using your creds. Login in to one of the offending systems and look at the account stuff for the user id that is failing. I'd look at the home directory, shell entry, rc files for starters.
# 6  
Old 09-18-2009
The message "No owner" usually comes from trying to delete/rename/move a file which you do not own in a directory with the "sticky bit" set. I think we need to see the ".profile" file for the remote user with every character visible. Modern ksh doesn't worry about the permissions on ".profile" itself (it either executes or doesn't) so we are probably looking for a ".profile" file which contains a faulty command sequence.
My first inclination is to rename the remote ".profile" for elimination purposes.
After this test we may need to look at the remote /etc/profile .

Previous Thread | Next Thread
Test Your Knowledge in Computers #819
Difficulty: Medium
In CSS, E ~ F matches an F element preceded by an E element.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Mindboggling difference between using "tee" and "/usr/bin/tee" in bash

I'm on Ubuntu 14.04 and I manually updated my coreutils so that "tee" is now on version 8.27 I was running a script using bash where there is some write to pipe error at some point causing the tee command to exit abruptly while the script continues to run. The newer version of tee seems to prevent... (2 Replies)
Discussion started by: stompadon
2 Replies

2. Shell Programming and Scripting

If cmd in in "A/user/bin A/bin A/user/sbin" but not "B/user/bin B/bin B/user/sbin" directory print t

there are two directories A and B if cmd in in "A/user/bin A/bin A/user/sbin" but not "B/user/bin B/bin B/user/sbin" directory print them (1 Reply)
Discussion started by: yanglei_fage
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between "/bin/bash" & "/bin/sh"

what if the difference between #!/bin/sh and #!/bin/bash I wrote a script with the second heading now when i change my heading to the first one ...the script is not executing well....im not getting the required output....any solution to this problem...or do i have to start the... (3 Replies)
Discussion started by: xerox
3 Replies

4. UNIX Desktop Questions & Answers

Will this be a problem in my script "#! /bin/ksh" ?

All, In my script i am having the first line as "#! /bin/ksh" I see there is a space between #! and /bin .. My script is working fine and it is not causing any problem.But some time this script is very slow in processing and even some time the script hangs we need to kill and... (5 Replies)
Discussion started by: arunkumar_mca
5 Replies

5. Shell Programming and Scripting

"#!/bin/ksh -f" What does the -f option do?

What does "-f" option do? This is at the start of a shell scripts to point to full path to the interpreter such as /bin/ksh What does the -f option do? #!/bin/ksh -f (3 Replies)
Discussion started by: Arsenalman
3 Replies

6. Shell Programming and Scripting

ksh-script "arithmetic syntax error" comparing strings

Hi all, Iエve already searched the forum but canエt find what i am doing wrong. I am trying to compare two variables using ksh under red hat. The error I get is: -ksh: .: MDA=`md5sum /tmp/ftp_dir_after_transfer | cut -d' ' -f1 ` MDB=`md5sum /tmp/ftp_dir_before_transfer | cut -d' ' -f1 `... (3 Replies)
Discussion started by: old_mike
3 Replies

7. Shell Programming and Scripting

What does "#@$-s /usr/bin/ksh -x " mean?

I am using ksh.. Whenever we write a shell script the first statement would be #! /bin/ksh. But instead of that I came to find "#@$-q large" in the first line and"#@$-s /usr/bin/ksh -x " in the second line. what does it mean? Give your comments..... Thanks sabeer (4 Replies)
Discussion started by: sabeeralict
4 Replies

8. HP-UX

script running with "ksh" dumping core but not with "sh"

Hi, I have small script written in korn shell. When it is called from different script, its dumping core, but no core dump when we run it standalone. And its not dumping core if we run the script using "/bin/sh" instead of "ksh" Can some body please help me how to resolve this issue. ... (9 Replies)
Discussion started by: simhe02
9 Replies

9. Shell Programming and Scripting

In ksh shell command - Print "-ABC" is giving error

Hi Guys, while executing the following command : print "-ABC" is giving following error : ksh: print: bad option(s) I cannot use echo for some other reasons, so any other option ? (2 Replies)
Discussion started by: sagarjani
2 Replies

10. UNIX for Dummies Questions & Answers

#!/bin/sh script fails at StringA | tr "[x]" "[y]"

I need to take a string (stringA) check it for spaces and replace any spaces found with an equal (=) sign. This is not working. There are spaces between each component: $StringA | tr "" "" The error returned is: test: Specify a parameter with this command Can you help? (3 Replies)
Discussion started by: by_tg
3 Replies

Featured Tech Videos