[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#352394: tex-common: permission scheme for /var/cache/fonts



On Die, 14 Feb 2006, Frank Küster wrote:
> >   db_fset tex-common/managecache seen false || true
> >   db_fset tex-common/groupname seen false || true fi
> 
> mangagecache is new, so why do we need to reset this?

True, was a s/.../..../g

Or we could reuse the old name, but ... I am against it.

> > postinst part:
> >     db_get tex-common/managecache || true
> >     if [ $RET = true ] ; then
> >       db_get tex-common/groupname || true
> >       GROUP="$RET"
> >       if [ -n "$GROUP" ] ; then
> >         for i in /var/cache/fonts /var/cache/fonts/pk /var/cache/fonts/tfm /var/cache/fonts/source ; do
> >           chmod 02775 $i
> >           chown "root.$GROUP" $i
> 
> use 'chown "root:$GROUP", the dot is allowed in user and group names in
> this millenium.

Hmm, I used it since more than 5 years ... so also in the previous
millenium. Anyway, yes.

> > Only think we should think about is the part in the postinst part: Do we
> > want to recursively change *all* directories (there could be some old
> > ones present) to 02755? I.e.
> > 	find /var/cache/fonts -type d -exec chmod 02755 '{}' \;
> > instead of the for i in ... construct ...
> 
> I currently don't see a use case where one would only want the top
> directories to be setgid-group-writable, but not lower ones.

True.

> By the way, should we also (ask whether we should) set the sticky bit on
> the directories?

I would leave it without for now. If someone complains, we can add it
later on easily.

So we decided to
  find /var/cache/fonts -type d -exec chmod 02755 '{}' \;
  find /var/cache/fonts -type d -exec chown "root:$GROUP" '{} \;
? If yes, I will fix the few things and submit.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
SCRANTON (n.)
A person who, after the declaration of the bodmin (q.v.), always
says,'... But I only had the tomato soup.'
			--- Douglas Adams, The Meaning of Liff



Reply to: