ubuntu file permission modification
When we execute or modify a directory under ubuntu, they show that they cannot be modified, which means that the permissions of the directory have been set, (read-only mode is set, and root permissions are also required). This article is divided into two ways to modify the permissions of ubuntu files: the first method is the simplest and rude method to directly change root permissions to ordinary user permissions, and the second method only adds permissions such as "writable" and " executable " to the
directory
for yourself .
1. Modification of ubuntu file user permissions (root—>ordinary user)
chown -R username filename
For example, the current file permission is root, and you want to change it to the permission of ordinary users of doudou.
chown -R doudou filename
At this point, the permissions of the file have changed from root permissions to permissions under the doudou user. After changing to user permissions, you can directly modify the execution permissions in the "Properties" of this directory.
2. Modification of ubuntu file permissions
chmod 参数 filename
Parameters: u means user, a means all, g means group, r means readable, w means writable, x means execute