If you want to perform redirection of a command run by sudo, you will get the following error :
The file access permissions do not allow the specified action 0403-005 Cannot create the specified file
What does it mean?
Redirection is some kind of built-in features of your current running shell. (bash or ksh). When you issue a command with sudo, the built-in fonctions can not work within the child process. To overcome this issue, the only workaround is to launch your command within a subshell :
sudo sh -c ‘your command > file.out’
