1835340 Members
2814 Online
110078 Solutions
New Discussion

Can't read root's mail

 
MAD_2
Super Advisor

Can't read root's mail

I keep getting the following message when I try to read root's mail:

Check mode and group id of mail file.
Mode should be "660" with group id "mail".

I already checked mode and group ids in /var/mail and they match this criteria. Also, it's not only root's mail I can't read, it's any account's mail. Any ideas? It was working ealier today but not sure what happened between this morning and now.

Thanks,
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with
3 REPLIES 3
Michael Tully
Honored Contributor

Re: Can't read root's mail

Hi,

'root's mail should have the permissions
as below:

-rw-rw---- 1 root mail 1659724 Jun 4 09:33 /var/mail/root

Also check the directory permissions as so:

drwxrwxr-x 2 bin mail 1024 Jun 4 09:33 /var/mail

Cheers
~Michael~
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: Can't read root's mail

What is the permission and ownership of /var/mail? It should be: 775, owned by bin:mail. Here is /var and /var/mail:

ll -d /var /var/mail
dr-xr-xr-x 18 bin bin 2048 Oct 22 2001 /var/
drwxrwxr-x 2 bin mail 96 Jun 3 19:04 /var/mail/


Bill Hassell, sysadmin
MAD_2
Super Advisor

Re: Can't read root's mail

Thanks for your answers. The problem was actually not permissions but the environment I was using, I was using an environment that was created for administrators but root's profile was not included! My mistake, I did not realize it until the next day.
Contrary to popular belief, Unix is user friendly. It's just very particular about who it makes friends with