cancel
Showing results for 
Search instead for 
Did you mean: 

mail: permission denied!

Lorenzo Facello
Valued Contributor

mail: permission denied!

From my server hp9000 Hp-ux 11.00, if I make:
su - user
I recived the above message, so I can't read my
mails with elm or other client.
The other users are ok!
Any suggestions?
Regds
L.
13 REPLIES
Karthik S S
Honored Contributor

Re: mail: permission denied!

cd /var/mail
more username

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Lorenzo Facello
Valued Contributor

Re: mail: permission denied!

Ok!
But I need that my customer reads mail with his client
(Outlook)
It seems that the session goes in jam!!
blocked!!
Robert-Jan Goossens
Honored Contributor

Re: mail: permission denied!

Hi,

Check the permissions of the mail file in /var/mail should be username:mail.

Regards,
Robert-Jan
Karthik S S
Honored Contributor

Re: mail: permission denied!

Check the permissions,

/var/mail should have,
#ll -d /var/mail
drwxrwxr-x 2 bin mail 96 Feb 5 21:21 /var/mail
#

/var/mail/user_name should have,

-rw-rw---- 1 user_name mail xxxx Apr 11 2003 user_name

Also check if sendmail is running.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
T G Manikandan
Honored Contributor

Re: mail: permission denied!

check /var/mail permissions.
Lorenzo Facello
Valued Contributor

Re: mail: permission denied!

I have right permission
/var/mail ---> bin mail
/var/mail/user ----> username mail
????
Vijaya Kumar_3
Respected Contributor

Re: mail: permission denied!

I think it is a login problem.

Can you just check whether this user is able to login to the system using telnet/ssh.

Also, check /var/adm/syslog/syslog.log during login

Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Robert-Jan Goossens
Honored Contributor

Re: mail: permission denied!

Hi L,

Could you check the permissions of /var and /var/mail.

# ls -ald /var
dr-xr-xr-x 22 bin bin 1024 Dec 8 17:04 /var
# ls -ald /var/mail
drwxrwxr-x 2 bin mail 1024 Feb 12 11:42 /var/mail

Regards,
Robert-Jan
Lorenzo Facello
Valued Contributor

Re: mail: permission denied!

I've tried, and all it's ok!
other suggestions???
Thanxs
T G Manikandan
Honored Contributor

Re: mail: permission denied!

I am not sure where you mail box resides.
Can you check /usr/mail for the same above suggestions
Lorenzo Facello
Valued Contributor

Re: mail: permission denied!

ll -ald mail
lrwxrwxrwt 1 root sys 9 Nov 3 18:05 mail -> /var/mail


ll -ald fabrab
-rw-rw---- 1 fabrab mail 0 Feb 12 12:12 fabrab (the user incriminated!!)

??
Elmar P. Kolkman
Honored Contributor

Re: mail: permission denied!

After doing the 'su - fabreb', check your ENV variable MAIL. It should be '/var/mail/fabreb'. If not, it might try to open /var/mai/root, which is not allowed...
Every problem has at least one solution. Only some solutions are harder to find.
Berlene Herren
Honored Contributor

Re: mail: permission denied!

Run this:

#sendmail -v -d44.99 root > /tmp/permtest

#sendmail -v -d44.99 username > /tmp/permtest

And check all permissions.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm