Link to home
Start Free TrialLog in
Avatar of petro2
petro2

asked on

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?
Avatar of fim32
fim32

what unix?  do you own your mail file?  what are the permissions on /tmp?
Avatar of petro2

ASKER

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
Avatar of petro2

ASKER

if i do a l the permissions on /tmp is drwxrwxrwxt
Avatar of Tintin
To see permissions on /tmp, do

ls -ld /tmp

Should be

drwxrwxrwt
Avatar of petro2

ASKER

yes it is
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.
... Or could perhaps the filesystem be corrupt? fsck would be you freind then.

-- Glenn
Avatar of petro2

ASKER

/tmp ran out of space and unneeded file were deleted, that is when this issue started.
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.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 '
Did you verify the fs consistency?
Hitting a hard limit has been known to ... induce ... fs errors:-).

-- Glenn