Re: should /var/spool/mail/ have a the sticky bit set? ...
On Fri, 30 Mar 2001, Walter Tautz wrote:
> open("/var/spool/mail/<myhostname>.cf86b", O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC, 0) = -1 EACCES
> (Permission denied)
> setgid(1000) = 0
> rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
> write(2, "Unable to lock mailbox: Permissi"..., 42Unable to lock mailbox: Permission denied
>
> ls -l /var/spool/mail
> drwxrwsr-x 2 root mail 4096 Mar 30 11:13 ./
afaict, the sticky bit doesn't buy anything with g=w,o!=w directory
> On Solaris and /var/mail has a sticky bit set
> ls -ald /var/mail/
> drwxrwxrwt 3 root mail 1024 Mar 30 11:15 /var/mail/
Here, you need the sticky bit to keep folk from writing/erasing another
users files.
what do the files in the directory look like? Here's mine:
-rw-rw---- 1 cowboy mail 0 Mar 29 19:44 cowboy
and what does mail look like:
-rwxr-xr-x 1 root root 69884 Mar 23 17:54 /usr/bin/mail
With the above, I've no problem using mail
--
Rick Nelson
<Flav> Win 98 Psychic edition: We'll tell you where you're going tomorrow
Reply to: