1832911 Members
2716 Online
110048 Solutions
New Discussion

mail problem

 
Luca Frigatti
Contributor

mail problem

Hi All!!
I've the following problem.
I create a user on my server HP-UX (version 10.20) after I delete it (it was an error!!!)
When I try to connect or to execute the su command I've got on terminal the following error message :
mail:permission denied.

Have you any suggest to solve my problem?

Thanks in advance for your help and your support.

Luca
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: mail problem

Hi Luca,

Can you go into a little more detail.

Regds
Sanjay
S.K. Chan
Honored Contributor

Re: mail problem

Usually the "user" mailbox permission or ownership is not right. Check it ..
/var/mail/
permission should be 660 (owned by "username" , group ownership is "mail")
Carlos Fernandez Riera
Honored Contributor

Re: mail problem

Well... I guess you have recreated that user again...

The .profile file should run mail to advice the exitence of mail for that user, but the user-id do not macth the previous user-id, so the mailbox cant be opened.


Check it:

ll /var/mail/username -> it must show a numeric value for owner.

Just do a chown or delete the /var/mail file for user.

unsupported
MANOJ SRIVASTAVA
Honored Contributor

Re: mail problem

Hi Luca

As a standard part of the suer removal , the OS alos deletes its mail box. In /etc/profile is the subroutine which checks for the mail .

If the command doenst work for that user then may be there is a problem in the mail file . You can just go and delte the file under /var/mail and you should be good to go , or id ther /usr/bin/mail command is not working for that user.

Manoj Srivastava