add possibility to change permission after accessing to file