From owner-freebsd-security@FreeBSD.ORG Mon Mar 16 19:31:24 2009 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D1B61065672 for ; Mon, 16 Mar 2009 19:31:24 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from mail.anduin.net (mail.anduin.net [213.225.74.249]) by mx1.freebsd.org (Postfix) with ESMTP id D224F8FC14 for ; Mon, 16 Mar 2009 19:31:23 +0000 (UTC) (envelope-from ltning@anduin.net) Received: from [212.62.248.148] (helo=[192.168.2.171]) by mail.anduin.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LjIWu-000LCO-5A; Mon, 16 Mar 2009 20:31:20 +0100 Message-Id: <253C16FF-5287-4941-8DFB-AB07D57E3C90@anduin.net> From: =?ISO-8859-1?Q?Eirik_=D8verby?= To: freebsd001@pc.jgr.de In-Reply-To: <200903152350.n2FNoGnk006601@pc.jgr.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v931) Date: Mon, 16 Mar 2009 20:31:21 +0100 References: <200903152350.n2FNoGnk006601@pc.jgr.de> X-Mailer: Apple Mail (2.931) Cc: freebsd-security@freebsd.org Subject: Re: emacs installs a lot of 777 directories X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 19:31:24 -0000 On 16. mars. 2009, at 00.50, freebsd001@pc.jgr.de wrote: > March 16, 2009 > Dear Giorgos, > > thank you for coming back to the emacs issue. I deinstalled > emacs by means of pkg_delete -v -d, deleted by hand > /usr/local/share/emacs to make sure that nothing is left, > logged in as user "nutzer", and did su to root: > >> id > uid=1006(nutzer) gid=1000(user) groups=1000(user),0(wheel) >> su > Password: Try 'su -' instead of 'su'. There might be some environment issues; I've seen similar behavior when making that mistake myself. Not sure if it'll explain the 777, but the owner should be the correct one then. /Eirik > >> id > uid=0(root) gid=0(wheel) groups=0(wheel),5(operator) >> > > Then, I did cd to /usr/ports/editors/emacs and did make and > make install. The result is as follows: > >> pwd > /usr/local/share/emacs/22.3 >> ll > total 22 > drwxrwxrwx 5 nutzer wheel 3072 Mar 15 23:52 etc > drwxr-xr-x 4 nutzer wheel 512 Mar 15 23:53 leim > drwxrwxrwx 20 nutzer wheel 13312 Mar 15 23:53 lisp > drwxr-xr-x 2 root wheel 512 Mar 15 23:52 site-lisp >> > > There are some rwx directories as originally mentioned in > the thread, and several directories as well as the files in > these directories are not owned by root, but by nutzer. > > If I log in as another user in the group wheel, do su, and > repeat the procedure, the files are owned by the other user > I log in. > > As I have only limited console access or find the console > access inconvenient, I have installed many ports by logging > in as a user in the group wheel and doing su to root. But > only emacs related files are owned by somebody else than > expected. > > With best regards > Joachim Griesche > > freebsd001@pc.jgr.de > > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org > " >