ericvlog / note

6 stars 1 forks source link

linux - How to change permissions for a folder and its subfolders/files in one step - Stack Overflow #22

Closed ericvlog closed 3 months ago

ericvlog commented 2 years ago

Save From : linux - How to change permissions for a folder and its subfolders/files in one step - Stack Overflow

Content

This answer is not useful

Show activity on this post.

For anyone still struggling with permission issues, navigate up one directory level cd .. from the root directory of your project, add yourself (user) to the directory and give permission to edit everything inside (tested on macOS).

To do that you would run this command (preferred):

sudo chown -R username: foldername .*

Note: for currently unsaved changes, one might need to restart the code editor first to be able to save without being asked for a password.

Also, please remember you can press Tab to see the options while typing the username and folder to make it easier for yourself.


Or simply:

sudo chmod -R 755 foldername

but as mentioned above, you need to be careful with the second method.

Note