[OS X TeX] Command-line fun

Peter Dyballa Peter_Dyballa at Web.DE
Mon Jan 15 11:04:18 EST 2007

Am 15.01.2007 um 15:21 schrieb Bruno Voisin:

> - Task (1):
> 	sudo chown -Rh root:wheel /usr/local/gwTeX/texmf.local

Only "local" directories, files, and sym-links are changed, not the  
files the sym-links point to (although I'm not sure whether HFS+  
supports this feature). Although I'd prefer group admin, wheel is so  
anonymous ...

> - Task (2):
> 	sudo find /usr/local/gwTeX/texmf.local -type d -exec chmod 755 {} \;
> 	sudo find /usr/local/gwTeX/texmf.local -type f -exec chmod 644 {} \;

2755 for directories might be a better choice: then automatically the  
new contents in such a directory would be owned by the owners of this  
directory. No "post-fixing" would be necessary.
A problem could arise from executable files (Ruby, Perl, and other  
scripts, for example in ConTeXt or XeTeX): they would lose this  

You could use '-exec chmod g-w {}' which would take away the write  
permission from members of the group. It would work on both, file and  
directory, at once. It could be expanded to '-exec chmod go-w {}' to  
take away write permission from group members and the rest of the  
world. The permission to execute a file (script) would not be changed.

> - Task (3):
> 	sudo find /usr/local/gwTeX/texmf.local -name ".DS_Store" -delete
> Could somebody command-line-savvy confirm the above is safe, or  
> correct whatever silly mistake I may have made?

Since you tell find where to start, the danger of damage is greatly  
reduced ...

> BTW, I just noticed that in a TeXLive-2006 MacTeX install the texmf- 
> var directory and its content are writable by everybody:

I think TeX Live has no idea of "personal set-up." So part of its  
installation is "public property." Could be that PK files are also  
built in this area ...



With Capitalism man exploits man. With communism it's the exact  

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list