GFAL2  2.9.1
gfal_testchmod.c

This example show how to change the right on a file/directory ex : use case with SRM plugin : ./gfal_testdir srm://grid05.lal.in2p3.fr:8446/dpm/lal.in2p3.fr/home/dteam/test_obiwankenobi