Mayfield Global Knowledge Center



I receive "Permission denied" when attempting to modify (delete, copy or edit) a file / directory. How do I resolve this?

"Permission denied" is an indication that you do not have sufficient access to perform the desired operation. Permission restrictions help ensure that you do not modify something required for the system to function properly. Though it is sometimes necessary to modify restricted files / directories, it should always be done with caution.

The quickest way to modify a restricted file is to simply assume the access level of a user (i.e. root) that has the necessary permissions.

  1. At the user terminal, type:su -then press Enter. When prompted, type the root password then press Enter again. The terminal prompt will change from $ to #, indicating that you are now in a root terminal session.
     Be VERY careful running commands at the root terminal. You have access to modify every file on the entire system and the potential to cause irreversible changes.
  2. Make the necessary changes to your files / directories.
  3. Once you are finished, press Ctrl+D to exit the root terminal and return to the normal user terminal.

Would you like to...


del.icio.us

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favoritesAdd to favorites

User Opinions (8 votes)

100% thumbs up 0% thumbs down

How would you rate this answer?

Helpful
Not helpful
Thank you for rating this answer.