home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!UB.com!daver!hico2!kak
- From: kak@hico2.westmark.com (Kris A. Kugel)
- Subject: Re: World-readable mailbox?
- Message-ID: <Bz5vpy.656@hico2.westmark.com>
- Summary: other-read bit dominant on sysV.2 sgid elm
- Keywords: security, elm 2.4 PL13, sgid, UNIX SysV.2
- Reply-To: kak2@hico2.westmark.com
- Organization: High Country Software
- X-Newsreader: TIN [version 1.1 PL8]
- References: <Byr0p0.nr@chinet.chi.il.us>
- Date: Sat, 12 Dec 1992 19:34:44 GMT
- Lines: 50
-
- Leslie Mikesell (les@chinet.chi.il.us) wrote:
- : [trying to set up a mailbox with read access for everybody but
- : edit access only for those "owning" account]
-
- : Les Mikesell
- : les@chinet.chi.il.us
-
- Well, I thought I had something like this working on my Sys V.2 machine,
- but I was wrong. At least with the current [2.4 PL13] version of elm.
-
- My machine is pretty much limited to a very limited number
- of highly trusted users, so I'd played around
- with the default mail file permissions for my own convenience:
- total 1013
- -rw-rw---- 1 kak mail 39156 Dec 12 07:26 kak
- -rw-rw-rw- 1 netnews mail 8007 Dec 9 23:18 netnews
- -rw-rw-r-- 1 root mail 1318 Dec 12 13:53 root
- -rw-rw-rw- 1 uucp mail 56931 Dec 12 04:00 uucp
-
- Evidently, the permissions on root allow reading AND editing
- on my sgid mail elm.
-
- Well, sounds like I could:
- A. turn off sgid permissions, (probably requiring reconfig/compile)
- B. track down the mailbox writing code, and either
- encapsulate that with permissions checking code, or
- switch back to the user's normal gid. This second
- won't work on this system, I don't think I can then
- switch to the egid again.
-
- Obviously, hand-checking the permissions involves some
- os-specific code, but is probably a useful thing to have.
- (for example, such may allow mail security of some type
- on systems that don't really support it in the filesystem.)
-
- Note: removing the other "r" permissions prevents read access to
- this mailbox with my sgid elm. The following permissions don't work either:
-
- 4 -rw--w-r-- 1 root mail 1629 Dec 12 14:13 /usr/mail/root
-
- [Not that I recommend making root mailbox readable to the world anyway,
- but you get the idea.]
- I suspect that I need some code or option change to get the security right.
- Right now, it looks like the other-read bit controls all access.
- Probably, the file-reading and file-writing should be separately
- encapsulated for this to work right.
-
- Kris A. Kugel 908-842-2707
- hico2!kak kak@hico2.westmark.com
-
-