chmod support
Merge pull request #7 from gierschv/master

chmod support