I am trying to check and change a folder's permissions in the shell script. However, it wants to change the permissions even though it's changed.if [ $(stat -c '%s' /usr/local/src) == 755 ]; then  echo Approved!elseecho Wait please, we're changing the permissionssudo chmod -R 755 /usr/local/srcfiError:Wait please, we're changing the permissionssudo: unable to resolve host john[sudo] password for john: sudo: unable to resolve host johnI do type the correct password. I never get Approved!, why?
Check & change specfic folder permissions
shell script;permissions