Linux Basics: Linux File Permissions // How To Change Linux File Permissions

Описание к видео Linux Basics: Linux File Permissions // How To Change Linux File Permissions

How to change the permissions in a linux file using the symbolic or numeric method

Symbolic will use the chmod command below to determine which category, user, group, or other do you want to change permissions for, what do you want to do? Add+, remove-, or set=, and to which permissions? Read, write, or execute?

Syntax:
chmod whowhatwhich file1

Examples:
chmod ug+x file1 This says I want to change the user and group permissions by adding the execute ability.

Numeric method allows you to use the numbers assigned to the permissions read, write, and execute to define permissions
r=4
w=2
x=1
chmod 444 would mean you want read only permissions for user,group,other
chmod 664 would mean you want read+write on user and group, but only read on other.
chmod 700 would mean you want read+write+execute for user only, and group and other have no permissions.

Комментарии

Информация по комментариям в разработке