Solaris 10 error "-sh: /tmp/outfile: cannot create"

Hello,

Each time a user log on to host, they receive below error:

-sh: /tmp/outfile: cannot create

Example:


$ ssh host
user@host's password:
Last login: Fri Dec  4 08:17:28 2015 from client.ref


|-----------------------------------------------------------------|

-sh: /tmp/outfile: cannot create
$

Verified & file exists:

# ls -ltrh /tmp/outfile
-rw-r--r--   1 orasrp   dba         1.4M Dec  4 08:22 /tmp/outfile
#
# file /tmp/outfile
/tmp/outfile:   ascii text
#
# fuser /tmp/outfile
/tmp/outfile:
#
# head /tmp/outfile
14-11-15 , 01:15 ,  ,
14-11-15 , 01:15 ,  ,
14-11-15 , 01:15 ,  ,
14-11-15 , 01:15 ,  ,
14-11-15 , 01:16 ,  ,
14-11-15 , 01:16 ,  ,
14-11-15 , 01:17 ,  ,
14-11-15 , 01:17 ,  ,
14-11-15 , 01:18 ,  ,
14-11-15 , 01:18 ,  ,
#

Server details are:

M4000

# uname -a
SunOS host 5.10 Generic_142909-17 sun4u sparc SUNW,SPARC-Enterprise
#
# cat /etc/release
                      Solaris 10 10/09 s10s_u8wos_08a SPARC
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 16 September 2009
#

Please your assistance to get rid of error.

Thanks!

-sh is the login shell on the remote host.
Check .profile e.g. with

ssh host cat .profile

Hi,

You should check the /etc/profile to see if the file is created, the permissions on the file and the fact that it already exists would cause the issue.

I would suggest that some one has maybe cloned a profile, Or perhaps a common home directory is set.

Regards

Gull04