[20895] in Athena Bugs

home help back first fref pref prev next nref lref last post

Minor permission problem with local-netscape (mozilla)

daemon@ATHENA.MIT.EDU (Tom Cavin)
Fri Oct 11 12:13:22 2002

MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <15782.63648.632265.676152@lap1-wccf.mit.edu>
Date: Fri, 11 Oct 2002 12:13:20 -0400
From: Tom Cavin <cavin@MIT.EDU>
To: Athena Bugs list <bugs@MIT.EDU>
CC: Tom Cavin <cavin@MIT.EDU>


Hi Folks,

I just ran into a minor permission problem with the local mozilla
installation.  I'm using an Athena laptop, and haven't had the system live
on MITnet at 3 PM to get the local bits.  I asked OLC and got pointed to
the /etc/athena/local-netscape script as executed from the athena crontab
listing.

I ran the /etc/athena/local-netscape script by hand as root, and ended up
with a /var/athena/infoagents/arch/share/bin/mozilla.adjusted with 711
permissions.  (My root umask is 0077.)  This set of permissions broke
Mozilla because the /usr/athena/bin/mozilla script just checks for execute
permissions on $localscript and as a shell script it also needs read
permissions to run.

My simple local fix was to change the local permissions on the
mozilla.adjusted file to be 755.

My suggestion is to put explicit permissions in the chmod lines in
/etc/athena/local-netscape instead of assuming some appropriate starting
value.  That is to say change:

	chmod a+x "$script.new"

    to

	chmod u=rwx,go=rx "$script.new"

I don't know if this is likely to come up with other systems since I don't
know off-hand the normal umask for root when run from crond, but I thought
I'd pass the information to you. 

Thanks,

	--Tom

P.S. Previously, Mozilla took 110 seconds to start up, even the second
time.  With the local version, it takes 10 seconds -- a big win.  --tec

-- 
Tom Cavin                                  Phone:  (617) 258 - 7806
Computer Operations Manager                Email:     cavin@mit.edu
MIT - Whitaker College Computer Facility          or tec@ai.mit.edu

home help back first fref pref prev next nref lref last post