changing permissions before the first sudo call