ed strange error message

When I start ed as regular user, following message is displayed:

$ed
ERROR: tempnam failed: Permission denied
$

I think, following error produced in vi when search results from previous error:

No previous regular expression

Setting TMPDIR variable cause no effect.

As root all works fine.

Any help appreciated.

Regards, Frenki

ls -ld /tmp

post output

$ls -ld /tmp
drwxrwxrwt    3 root     sys             336 okt 26 15:30 /tmp
$

Any sugestion?

Regards, Frenki

Any other idea what could be wrong?

Regards, Frenki

Hmm.. well no idea.

Double check your $TMPDIR first.

What OS is this?

No matter how $TMPDIR is set, behavior is the same! Currently $TMPDIR is set :

$env | grep TMPDIR
TMPDIR=/var/tmp
$ls -ld /var/tmp
drwxrwxrwt    2 bin      bin             276 okt 29 03:10 /var/tmp
$

OS is SCO UnixWare 7.1.4 (yes, I know what you think about :confused: :frowning: ) upgraded from 7.1.1.

Regards, Frenki

OK, check permissions on /var then.