Unix mail

When I 'exit' out of reading my mail, I get :  UX:mailx: ERROR: badwrite 1 /tmp/pdiRm18647: Permission denied , and the mail is not moved to the usr/mbox. How can I fix this?
petro2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fim32Commented:
what unix?  do you own your mail file?  what are the permissions on /tmp?
0
petro2Author Commented:
Unixware 7
yes thisuser owns the mbox in /home/thisuser
/tmp is a filespace how to I see permission? When I do dfspace i can not see permissons
0
petro2Author Commented:
if i do a l the permissions on /tmp is drwxrwxrwxt
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

TintinCommented:
To see permissions on /tmp, do

ls -ld /tmp

Should be

drwxrwxrwt
0
petro2Author Commented:
yes it is
0
jlevieCommented:
It may also be that the file system that holds /tmp is out of space. A 'df -k' will show all mounted file systems and the utilization of each.
0
GnsCommented:
... Or could perhaps the filesystem be corrupt? fsck would be you freind then.

-- Glenn
0
petro2Author Commented:
/tmp ran out of space and unneeded file were deleted, that is when this issue started.
0
jlevieCommented:
I suspect that you deleted a bit more than you should have when you cleaned up /tmp. one of the things it holds is login & application session information for a user. If a user is logged or has applications running and you clean out /tmp strange failures will follow. The sure cure is simply to reboot the server, but usually you can have the affected user log out and then log back in.
0
gheistCommented:
When you delete open file it stays taking space, you need to restart all processes holding unreferenced files open in /tmp.
lsof, fuser or fstat will show such files/processes(one may be available, or lsof downloaded)
next time add one of them to your cleanup scripts, or use find -atime +15 -mtime +15, this at least will skip growing logs in your /tmp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
assuming you used a programm named mail for "reading my mail", then plese post result of:
  ls -l `which mail`
NOTE: these are backticks ` not quotes '
0
GnsCommented:
Did you verify the fs consistency?
Hitting a hard limit has been known to ... induce ... fs errors:-).

-- Glenn
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.