It can be:
/tmp or /var is full
or wtmp is corrupt:
1.Boot the server in single user mode 2.Delete /var/adm/wtmp 3.touch /var/adm/wtmp 4.Boot the server using init 3