home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.elm
- Path: sparky!uunet!caen!nic.umass.edu!titan.ucc.umass.edu!jeff
- From: jeff@titan.ucc.umass.edu (DarkShadow)
- Subject: Re: World-readable mailbox?
- Message-ID: <Bz82MJ.HBH@nic.umass.edu>
- Keywords: security, elm 2.4 PL13, sgid, UNIX SysV.2
- Sender: usenet@nic.umass.edu (USENET News System)
- Organization: University of Massachusetts, Amherst
- References: <Byr0p0.nr@chinet.chi.il.us> <Bz5vpy.656@hico2.westmark.com>
- Date: Sun, 13 Dec 1992 23:59:07 GMT
- Lines: 69
-
- In article <Bz5vpy.656@hico2.westmark.com> kak2@hico2.westmark.com writes:
- >Leslie Mikesell (les@chinet.chi.il.us) wrote:
- [stuff deleted...]
-
- >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
- >
-
- At UMass, we had a public mailbox on a Cyber running NOS/VE (ancient
- system) which was privately owned and located in a single account.
- This machine is going down soon, so the public mailbox was moved to an
- Ultrix machine. The way she sets it up is by putting world-readable
- permissions on the elm folder file and write only for herself: chmod
- u+x and a+r on the mail folder. Then, we can read it by using the -f
- flag for elm. We set up an alias in our .cshrc file that looks
- something like this:
-
- alias cl "elm -f ~account/Mail/.CL"
-
- (I won't divulge what CL stands for...it's not important :) ) Anyway,
- this folder can be edited by it's owner, and everyone else can read
- it. Hope this helps.
-
- -Jeff
- --
- Jeff Zabek
- Department of Computer Science
- University of Massachusetts
- email: jeff@titan.ucc.umass.edu
-