Today, installing Pyspider on Ubuntu16.04, encountering insufficient permissions, found that when installing Anaconda3, the owner of the folder is root. As a novice, only look for ways to change the owner of a folder, or to modify permissions for a folder.
There are two modifications in Ubuntu that can be used, "change Mode"&"change owner"
That is, chmod and chown, which can use the recursive parameter-r to change permissions for all child files and subdirectories.
1, the use of chmod Modify permissions:
Perform the same permissions changes for all sub-files in the document/directory as subdirectories:
chmod document/
-r parameter is all files and subfolders under the recursive processing directory
700 is a changed permission representation (only the owner has permission to read and write and execute)
document/is the directory that needs to be executed
Common methods are as follows:
sudo chmod 600xxx (only the owner has read and write permissions)
sudo chmod 644xxx (owner has read and write permissions, group user only Read permissions)
sudo chmod 700xxx (only the owner has read and write and Execute permissions)
sudo chmod 666xxx (everyone has access to read and write)
sudo chmod 777xxx (everyone has access to read and write and execute)
where xxx refers to the file name (can also be a folder name, but to add-ld after chmod).
2. Use Chown to change the owner:
Perform the same owner change for all files in the document/directory as the subdirectory, modifying the username user who is the owner of the users user group
chown -R username:users document/
Username:users The Users user group username, user group parameters are not required. The following is also possible:
chown -R username:users document/
Ubuntu Change folder owner and permissions