Karsten's Blog

May 17, 2010

Unprotecting files on Mac OSX copied write-protected from Windows

Filed under: Mac — Tags: , — kthoms @ 5:32 PM

Today a colleague copied a Together project from his Windows machine to my USB stick, from which I copied the files to my disk. The files were write protected on the Windows machine since the project was managed by Synergy. When I tried to remove write protection from these files I realized that the files were not read-only by standard Unix file attributes and I could not use chmod to write-enable the files. When opening the properties dialog on those files one could see that the flag “Geschützt” (Protected) is set. Since the project consists of some hundred files using the dialog to remove this flag is no option.

After some searching I found this article which explains that OS X has some additional flags that supersede the standard UNIX permissions. These additional flags can be listed with ls by adding the -O option:

ls -AlO
total 152
-rw-r--r--@  1 thoms  thoms  hidden  6148 17 Mai 17:56 .DS_Store
-rwxrwxrwx   1 thoms  thoms  -        312  7 Mai  2009 .checkstyle
-rwxrwxrwx   1 thoms  thoms  -        234  5 Jun  2009 .designRoot
-rwxrwxrwx   1 thoms  thoms  -      48559  6 Mai  2009 .pmd
-rwxrwxrwx   1 thoms  thoms  -        922 21 Okt  2009 .project
drwxrwxrwx   6 thoms  thoms  uchg     204 17 Mai 17:52 Dokumente
drwxrwxrwx  11 thoms  thoms  uchg     374 17 Mai 17:52 Model Folder
-rwxrwxrwx   1 thoms  thoms  uchg      71  7 Mai 10:36 _ccmwaid.inf
-rwxrwxrwx   1 thoms  thoms  uchg    1583 23 Jul  2008 grafiken.tpl

The flags can be read and manipulated with the chflags command. For unsetting the “user immutability flag” on a complete directory execute

chflags -R nouchg *

May 11, 2010

Tycho slides uploaded

Filed under: Eclipse, Maven — Tags: , , , — kthoms @ 8:16 PM

Yesterday I gave a presentation about Maven 3 and Tycho for the Dortmunder Vortragsreihe, a public event series from itemis. A similar talk I gave at the JAX 2010 conference last week, but with less presentation time and thus a less content. I worked on learning about Tycho now quite a while and some bugs and the current lack of documentation led to some restless evenings in the hotel. At the end I wanted to have a continuous build for a non trivial RCP application build. As the example project I wanted to build I took Kai Tödter’s MP3Manager RCP sample project. Finally I got the project building with Tycho. There are still some issues, especially with the product export. I will use this project now to create situations that show bugs and report them to the Tycho team. They are working really hard at the moment to improve Tycho, and I’m sure that many issues will be resolved soon.

Anyway, the slides that I used yesterday were just uploaded, and I hope they will be useful to get started with Tycho.

Maven 3 / Tycho

In the future I will report more about Tycho, so stay tuned!

The Silver is the New Black Theme. Create a free website or blog at WordPress.com.


Get every new post delivered to your Inbox.

Join 375 other followers