the chmod command do not need to run inside a chrooted environment
eliminate trailing whitespace