Tag: permissions

60 votes
17 answers
3.1K views
open() in Python does not create a file if it doesn't exist

What is the best way to open a file as read/write if it exists, or if it does not, then create it and open it

avatar
Benton
0 1 0 9
asked 07 September, 2021
58 votes
20 answers
2K views
How to change permissions for a folder and its subfolders/files in one step

I would like to change the permissions of a folder and all its subfolders and files in one step (command) in L

avatar
Tana
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.6K views
How to fix npm throwing error without sudo

I just installed node and npm through the package on nodejs.org, and whenever I try to search or install somet

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
973 views
Chmod 777 to a folder and all contents

I have a web directory /www and a folder in that directory called store. Within store are several f

avatar
Chelsea
0 1 0 9
asked 07 September, 2021