foo.on.you:/usr/local/share# find . -type d -perm 777 ./emacs/22.3/etc/tree-widget ./emacs/22.3/etc/tree-widget/folder ./emacs/22.3/etc/tree-widget/default ./emacs/22.3/etc/e ./emacs/22.3/etc/images ./emacs/22.3/etc/images/low-color ./emacs/22.3/etc/images/gnus ./emacs/22.3/etc/images/icons ./emacs/22.3/etc/images/gud ./emacs/22.3/etc/images/smilies ./emacs/22.3/etc/images/mail ./emacs/22.3/etc/images/ezimage ./emacs/22.3/lisp ./emacs/22.3/lisp/net ./emacs/22.3/lisp/progmodes ./emacs/22.3/lisp/calc ./emacs/22.3/lisp/emacs-lisp ./emacs/22.3/lisp/url ./emacs/22.3/lisp/emulation ./emacs/22.3/lisp/play ./emacs/22.3/lisp/erc ./emacs/22.3/lisp/term ./emacs/22.3/lisp/obsolete ./emacs/22.3/lisp/textmodes ./emacs/22.3/lisp/mail ./emacs/22.3/lisp/eshell ./emacs/22.3/lisp/calendar ./emacs/22.3/lisp/mh-e ./emacs/22.3/lisp/international ./emacs/22.3/lisp/gnus ./emacs/22.3/lisp/language ./emacs/22.3/leim/ja-dic ./emacs/22.3/leim/quail
Randy Bush wrote at 11:15 +0900 on Mar 6, 2009: > foo.on.you:/usr/local/share# find . -type d -perm 777 > ./emacs/22.3/etc/tree-widget > ./emacs/22.3/etc/tree-widget/folder > ./emacs/22.3/etc/tree-widget/default > ./emacs/22.3/etc/e > ./emacs/22.3/etc/images > ./emacs/22.3/etc/images/low-color > ./emacs/22.3/etc/images/gnus > ./emacs/22.3/etc/images/icons > ./emacs/22.3/etc/images/gud > ./emacs/22.3/etc/images/smilies > ./emacs/22.3/etc/images/mail > ./emacs/22.3/etc/images/ezimage > ./emacs/22.3/lisp > ./emacs/22.3/lisp/net > ./emacs/22.3/lisp/progmodes > ./emacs/22.3/lisp/calc > ./emacs/22.3/lisp/emacs-lisp > ./emacs/22.3/lisp/url > ./emacs/22.3/lisp/emulation > ./emacs/22.3/lisp/play > ./emacs/22.3/lisp/erc > ./emacs/22.3/lisp/term > ./emacs/22.3/lisp/obsolete > ./emacs/22.3/lisp/textmodes > ./emacs/22.3/lisp/mail > ./emacs/22.3/lisp/eshell > ./emacs/22.3/lisp/calendar > ./emacs/22.3/lisp/mh-e > ./emacs/22.3/lisp/international > ./emacs/22.3/lisp/gnus > ./emacs/22.3/lisp/language > ./emacs/22.3/leim/ja-dic > ./emacs/22.3/leim/quail Seems okay on my system (0755 for those dirs). Could it be something specific to yours?
On Fri, 2009-03-06 at 11:15 +0900, Randy Bush wrote:> foo.on.you:/usr/local/share# find . -type d -perm 777 > ./emacs/22.3/etc/tree-widget > ./emacs/22.3/etc/tree-widget/folder > ./emacs/22.3/etc/tree-widget/default > ./emacs/22.3/etc/e > ./emacs/22.3/etc/images > ./emacs/22.3/etc/images/low-color > ./emacs/22.3/etc/images/gnus > ./emacs/22.3/etc/images/icons > ./emacs/22.3/etc/images/gud > ./emacs/22.3/etc/images/smilies > ./emacs/22.3/etc/images/mail > ./emacs/22.3/etc/images/ezimage > ./emacs/22.3/lisp > ./emacs/22.3/lisp/net > ./emacs/22.3/lisp/progmodes > ./emacs/22.3/lisp/calc > ./emacs/22.3/lisp/emacs-lisp > ./emacs/22.3/lisp/url > ./emacs/22.3/lisp/emulation > ./emacs/22.3/lisp/play > ./emacs/22.3/lisp/erc > ./emacs/22.3/lisp/term > ./emacs/22.3/lisp/obsolete > ./emacs/22.3/lisp/textmodes > ./emacs/22.3/lisp/mail > ./emacs/22.3/lisp/eshell > ./emacs/22.3/lisp/calendar > ./emacs/22.3/lisp/mh-e > ./emacs/22.3/lisp/international > ./emacs/22.3/lisp/gnus > ./emacs/22.3/lisp/language > ./emacs/22.3/leim/ja-dic > ./emacs/22.3/leim/quail > _______________________________________________ > 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"Could this simply be an over promiscuous umask being set when Emacs was installed? ie. umask 000 rather than the default umask 022 for root? I know I get warnings if attempting to install a package with a umask 077 which means no-one except the installer can access the files. Do packages print a warning to screen if umask 000 is set? Regards, Daniel
On Thu, Mar 05, 2009 at 07:25:55PM -0700, John Hein wrote:> Randy Bush wrote at 11:15 +0900 on Mar 6, 2009: > > foo.on.you:/usr/local/share# find . -type d -perm 777 > > ./emacs/22.3/etc/tree-widget > > ./emacs/22.3/etc/tree-widget/folder > > ./emacs/22.3/etc/tree-widget/default > > ./emacs/22.3/etc/e > > ./emacs/22.3/etc/images > > ./emacs/22.3/etc/images/low-color > > ./emacs/22.3/etc/images/gnus > > ./emacs/22.3/etc/images/icons > > ./emacs/22.3/etc/images/gud > > ./emacs/22.3/etc/images/smilies > > ./emacs/22.3/etc/images/mail > > ./emacs/22.3/etc/images/ezimage > > ./emacs/22.3/lisp > > ./emacs/22.3/lisp/net > > ./emacs/22.3/lisp/progmodes > > ./emacs/22.3/lisp/calc > > ./emacs/22.3/lisp/emacs-lisp > > ./emacs/22.3/lisp/url > > ./emacs/22.3/lisp/emulation > > ./emacs/22.3/lisp/play > > ./emacs/22.3/lisp/erc > > ./emacs/22.3/lisp/term > > ./emacs/22.3/lisp/obsolete > > ./emacs/22.3/lisp/textmodes > > ./emacs/22.3/lisp/mail > > ./emacs/22.3/lisp/eshell > > ./emacs/22.3/lisp/calendar > > ./emacs/22.3/lisp/mh-e > > ./emacs/22.3/lisp/international > > ./emacs/22.3/lisp/gnus > > ./emacs/22.3/lisp/language > > ./emacs/22.3/leim/ja-dic > > ./emacs/22.3/leim/quail > > Seems okay on my system (0755 for those dirs). > Could it be something specific to yours?umask? -- WXS
March 06, 2009 Dear list members, I am not only wondering about the permissions of several emacs-related directories as it has recently been mentioned in this thread, but also about the ownership of several emacs-related files. On several of my systems, a user in the group wheel did su to become root and when installed emacs via the ports by means of make and make install. Many files installed are not owned by root as I would expect, but by this user:>uname -r -sFreeBSD 6.3-RELEASE-p9>pwd/usr/local/share>find . -not -user root | head -n 3./emacs/22.3/etc ./emacs/22.3/etc/GNUS-NEWS ./emacs/22.3/etc/fr-drdref.ps>find . -not -user root | wc -l2643>With best regards Joachim Griesche freebsd001@pc.jgr.de
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:> iduid=1006(nutzer) gid=1000(user) groups=1000(user),0(wheel)> suPassword:>iduid=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>lltotal 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
March 19, 2009 Dear list members, thank you for the detailed explanation why I got a strange ownership of emacs related files. I am afraid that my question about ownership has moved the thread from permissions to ownership. I would like to remember that the question that was originally posted by Randy Bush in this thread was about 777 directories. These 777 directories also exist on my system - even after pkg_delete -v -d -a, rm -rvf /usr/local, and a fresh installation of emacs via make fetch-recursive, make, and make install in /usr/ports/editors/emacs (ports version FreeBSD: ports/UPDATING,v 1.790 2009/03/16 22:33:17 beat Exp). With best regards Joachim Griesche freebsd001@pc.jgr.de