From owner-freebsd-questions Sun Dec 15 21: 4:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02BA237B42C for ; Sun, 15 Dec 2002 21:04:43 -0800 (PST) Received: from smtp02.wlv.untd.com (smtp02.wlv.untd.com [209.247.163.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 1428943EB2 for ; Sun, 15 Dec 2002 21:04:43 -0800 (PST) (envelope-from idiot1@netzero.net) Received: (qmail 14246 invoked from network); 16 Dec 2002 05:04:35 -0000 Received: from dialup-65.58.199.88.dial1.tampa1.level3.net (HELO netzero.net) (65.58.199.88) by smtp02.wlv.untd.com with SMTP; 16 Dec 2002 05:04:35 -0000 Message-ID: <3DFD5F70.8060905@netzero.net> Date: Mon, 16 Dec 2002 00:06:56 -0500 From: Kirk Bailey Organization: Silas Dent Memorial Cabal of ERIS Esoteric and hot dog boiling society User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sendmail-questions@sendmail.org, tutor@python.org, freebsd-questions@freebsd.org, sendmail-questions@sendmail.org Subject: Re: permissions trouble -solved. References: <3DFC2831.7060108@netzero.net> <28717.1039965222@euclid.cs.niu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ok, I got it. The file referred to is in the lists dir. /www/www.tinylist.org/cgi-bin/lists/aliases.tinylist lists dir is chmod 755, owner nobody, and the files in there are chmod 644, owner nobody. in /etc/mail we create a SOFT link. ln -s /www/www.tinylist.org/cgi-bin/lists/aliases.tinylist aliases.tinylist We have sendmail.cf point at ./etc/mail/aliass.tinylist': ln -s /www/www.tinylist.org/cgi-bin/lists/aliases.tinylist aliases.tinylist I was root when I created the link. This makes the sendmail and operating system happy. It reads the file just fine, but creates the db right here in /etc/mail, where it can write as much as it pleases. I licked it. Thank you one and all for all the good advice. Neil W Rickert wrote: > Kirk Bailey wrote: > > >>ok, I have an alias in /etc/mail, called aliases.tinylist; this is able to be >>read by sendmail since I edited the sendmail.cf file, and it will compile it >>without error. the /mail dir is owned by root, and is chmod 755. > > >>the file aliases.tinylist is owned by nobody currently, although in certain >>tests it was owned by an unpriviliged user called grumpy, and it worked. > > > That's a security risk. The ability to add aliases should be tightly > restricted. > > >>I could issue a echo statement from the command prompt as grumpy, appending to >>the file, and it worked, regardless of what the current directory was. > > >>But when I tried to do it as grumpy running a SCRIPT (in python) it refused >>permission to write to the file. odd, grumpy could do it from the command >>prompt... > > > I don't know why you think this is a sendmail problem. From your > description, it would seem to be a python problem. > > -NWR > > -- end Respectfully, Kirk D Bailey +---------------------"Thou Art Free." -Eris-----------------------+ | http://www.howlermonkey.net mailto:highprimate@howlermonkey.net | | KILL spam dead! http://www.scambusters.org/stopspam/#Pledge | | http://www.tinylist.org +--------+ mailto:grumpy@tinylist.org | +------------------Thinking| NORMAL |Thinking----------------------+ +--------+ --------------------------------------------- Introducing NetZero Long Distance 1st month Free! Sign up today at: www.netzerolongdistance.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message