There might also be permission problems.
Finally, you might have to worry about permissions when a program doesn’t work correctly. For a program to work properly, the following permissions need to be granted:
You need execute permission for the program itself.
You need read permission for all files that the program opens for reading (although some programs are installed with special permissions to circumvent this.)
You need write permission for all files that the program needs to change.
When you have a permissions problem running a program, you’ll get an error like “Permission denied,” or you might see the name of a file followed by “cannot open.” What you need to do is learn what files or commands you need permission for and then have permission extended to you. If it isn’t obvious from the error message what kind of permission you need, try using the man command. On many manpages, there is a FILES section near the end that lists some of the files that the command needs to use.
Chapter 4 covers permissions in more detail.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access