chmod 1777 code example
Example 1: chmod
sudo chmod -R 777 name-file-wht-upu-want ///open for accsess all users
sudo chmod 644 #for example file /etc/hosts
https://ss64.com/bash/chmod.html
Example 2: chmod
chmod u=rwx,g=rx,o=r myfile
chmod 754 myfile
# 4 stands for "read",
# 2 stands for "write",
# 1 stands for "execute", and
# 0 stands for "no permission."