Usually, when a program runs with the same permissions as the user who is running it. The program can read or modify only the files which user is allowed to.
What are the permissions of /etc/shadow file?
ls -l /etc/shadow
15 Create File
17 Copy File