The permissions are
1 drw-rw---- 2 root mail 1024 Oct 8 08:43 mail
246 -rw-rw---- 1 rgibson mail 249968 Oct 8 07:58 mail/rgibson
What account should own /var/spool/mail?
I am a confused linux newbie.
I think you should have /var/spool/mail world readable at least :
chmod g+r /var/spool/mail
Note that I don't know if it's a security hole or not. It's at least a
privacy hole. If /var/spool/mail is word-readable (that is, if
everyone can list the directory), everyone can know when you receive
mail and how much you receive, even if they can't see the content.
--
Remi Guyomarch
Montargis, FRANCE
rgu...@valcofim.fr
My /var/spool/mail directory is rwxrwxr-x. The problem might also be in you
mail utilities. Whatever program gets you mail needs to be at least setgid
mail, and possibly setuid root.
Evan Jeffrey
erje...@artsci.wustl.edu
Check your mail program. Permissions should look like:
-r-xr-sr-x /bin/mail
Read the manual pages about chmod.
Kind regards
Henrik Davidsen
h...@support.cs.icl.dk
rgi...@gcomm.com (Rob Gibson) writes:
Interesting that no one else seems to have noticed this:
> My user account that has been working fine is getting the message :
> /var/spool/mail/rgibson: Permission denied
>
> The permissions are
> 1 drw-rw---- 2 root mail 1024 Oct 8 08:43 mail
> 246 -rw-rw---- 1 rgibson mail 249968 Oct 8 07:58 mail/rgibson
>
> What account should own /var/spool/mail?
> I am a confused linux newbie.
If you've gotten the permissions on the /var/spool/mail directory
correct, the difficulty is that no one (including you, root, and any
mail programs) can cd into /var/spool/mail, let alone read stuff from
there.
/var/spool/mail has to have all the execute bits set so people can cd
to it. Try
chmod 0775 /var/spool/mail
as root, and if that doesn't work, try contacting me privately.
- --
Graham Hughes (graham...@resnet.ucsb.edu)
http://A-abe.resnet.ucsb.edu/~graham/ for HTML
``Unix is many things to many people, but | finger gra...@A-abe.resnet
it's never been everything to anybody.'' | for PGP key
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface
iQCVAwUBMlwdBCqNPSINiVE5AQGOBgQAp6Z5wheecYAWbZlEqTEyODUaKi+31cif
PfNl6/UYaNiOWfFJqwDakOjaGyL9YxZiFtsNjqg8wkSXn27wD7V1Ae2+CZx+bfyv
bbYNldNdU6jVa/0YTKrt0LWDmyhy7cWmggViNQKSARcvF3sqVCeRWmhnfbx5lWjP
ytMSITK8l7Y=
=KgLL
-----END PGP SIGNATURE-----
> In article <53dn89$j...@news.internetmci.com>,
> rgi...@gcomm.com (Rob Gibson) writes:
>> My user account that has been working fine is getting the message :
>> /var/spool/mail/rgibson: Permission denied
>>
>> The permissions are
>> 1 drw-rw---- 2 root mail 1024 Oct 8 08:43 mail
>> 246 -rw-rw---- 1 rgibson mail 249968 Oct 8 07:58 mail/rgibson
>>
>> What account should own /var/spool/mail?
>> I am a confused linux newbie.
>>
>
> I think you should have /var/spool/mail world readable at least :
>
> chmod g+r /var/spool/mail
Oops ! A typo. I meant :
chmod a+r /var/spool/mail
--
Matthew Delaney N2MDB del...@j51.com ax.25: n2mdb@k2sk.#eny.ny.usa.na
Technical Engineer - @North. IMP - Sunfire MUD (mud.j51.com:4000)
Personal - http://www.j51.com/~delaney @North Group - http://www.chsn.org
New York City Metro Skywarn Observer Catch me on irc:NewNet as delaney
: I think you should have /var/spool/mail world readable at least :
: chmod g+r /var/spool/mail
: Note that I don't know if it's a security hole or not. It's at least a
: privacy hole. If /var/spool/mail is word-readable (that is, if
: everyone can list the directory), everyone can know when you receive
: mail and how much you receive, even if they can't see the content.
This is not a privacy or security hole. The directory SHOULD be world
readable, but it's contents should NOT. It's up to the mail program to
create the contents according to the correct permissions.
In my /var/spool/mail, the contents are all -rw-rw----
--
------------------------------------------------
THINK FREE! | mi...@ripco.com
Knowledge is Power! | question everything!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~