Solved issue causing do command with admin privileges to be not run in ubuntu