Permissions check and change error

octdec() method is required as octals and decimals are different. It may also be wise to leave permissions as they are if they don’t need to be changed.