linux:filepermission
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:filepermission [2016/06/07 10:55] – admin | linux:filepermission [2016/06/07 10:59] (current) – admin | ||
---|---|---|---|
Line 12: | Line 12: | ||
Example 600, 777 | Example 600, 777 | ||
+ | </ | ||
+ | |||
+ | b) File permission explanation | ||
+ | <code bash> | ||
+ | drwxrwxrwx | ||
+ | d=directory | ||
+ | r=read | ||
+ | w=write | ||
+ | x=execute | ||
+ | |||
+ | Example 0777 | ||
+ | </ | ||
+ | |||
+ | c) Change permission | ||
+ | <code bash> | ||
+ | chmod 777 yourfile | ||
+ | </ | ||
+ | |||
+ | d) Change ownership of a file | ||
+ | <code bash> | ||
+ | chown root,root yourfile | ||
</ | </ | ||
linux/filepermission.1465289713.txt.gz · Last modified: 2016/06/07 10:55 by admin