chmod is a command on UNIX systems. It is used to allow file permissions. Or folders About what someone can do Which is divided into 3 groups which are
1. The owner of the file (owner)
2. File owner group
3. General users, external (public)
Which can specify that each group can
1. Can read the file or download the file in that directory (read)
2. Write a file or create a file or directory in that directory (write)
3. The file can be processed (execute).
For example, if you want any directory Can create files into directories We have to give permission to the directory to write (or write) or if we want any files to be Can only read Set the file to read (read) and if you want the file to be rewritten or deleted Must grant rights to that file Can read (write)
a sample
1. chmod 666 is set to that file Read + Write (4 + 2)
2. chmod 777 is to specify that the file can do everything (4 + 2 + 1)
1. The owner of the file (owner)
2. File owner group
3. General users, external (public)
Which can specify that each group can
1. Can read the file or download the file in that directory (read)
2. Write a file or create a file or directory in that directory (write)
3. The file can be processed (execute).
For example, if you want any directory Can create files into directories We have to give permission to the directory to write (or write) or if we want any files to be Can only read Set the file to read (read) and if you want the file to be rewritten or deleted Must grant rights to that file Can read (write)
owner | group | public | |
---|---|---|---|
4 | read | read | read |
2 | write | write | write |
1 | execute | execute | execute |
a sample
1. chmod 666 is set to that file Read + Write (4 + 2)
2. chmod 777 is to specify that the file can do everything (4 + 2 + 1)
Comments
Post a Comment