1
0
Fork
You've already forked synoperms
0
A recursive chmod which allows you to set file and directory permissions separately, and which skips special Synology directories.
  • Go 100%
2021年11月23日 11:55:53 -06:00
.gitignore Initial commit 2019年02月13日 12:50:49 -06:00
go.mod Also skip #recycle, allow running on . 2021年11月23日 11:55:53 -06:00
go.sum Also skip #recycle, allow running on . 2021年11月23日 11:55:53 -06:00
main.go Also skip #recycle, allow running on . 2021年11月23日 11:55:53 -06:00
README.md Initial import 2019年02月13日 12:53:36 -06:00
synoperms.iml Initial import 2019年02月13日 12:53:36 -06:00

synoperms

This is basically a recursive chmod which allows you to set file and directory permissions separately, and which skips special Synology directories (ones which have names starting with "@").

Usage of synoperms:
-dirs string
 mode to set for directories (default "0755")
-files string
 mode to set for ordinary files (default "0644")
-v run in verbose mode

Example usage:

synoperms /volume1/music

It also avoids unnecessary chmod calls. I wrote it because I got fed up with having to run two find operations that would touch every file and directory.

WTFPL.