RUVIDEO
Поделитесь видео 🙏

Shell tutorial part 9: changing permissions

📁 Обучение 👁️ 19 📅 15.10.2024

In this video we will learn how to change permissions using chmod.
-----------------------
Video content:
1:03 : chmod |user-groups||+-||permissions| |file-path|. The chmod command changes the permissions of files that we own. The permissions are changed for the given |user-groups|, where 'u' is the owner of the file, 'g' is the owner group, and 'o' are all other users (users who are not the owner and not in the user group). It is possible to add permissions using '+' and to remove permissions using '-', where the permissions are given using their letters: 'r' is the reading permission, 'w' is the writing permission, and 'x' is the execute permission.
Note that chmod can be used with the '-R' flag to recursively change permissions for folders, including all of their contents.
2:04 : chmod go-rwx |file-path|. This command removes all permissions to the given |file-path| from the owner group and all other users, but leaves the owner's permissions untouched.
3:05 : chmod u+r |file-path|. This command adds the reading permission to |file-path|'s owner.
3:34 : chmod XYZ |file-path|. This command changes the permissions to the given |file-path| like so: given a series of 3 numbers XYZ, permissions of the owner are represented by X, the permissions of the owner group by Y, and the permissions of all others by Z where the possible numbers and their corresponding permissions are:
0 : No permissions (---)
1 : Execute permission (--x)
2 : Write permission (-w-)
3 : Execute and write permissions (-wx)
4 : Read permission (r--)
5 : Read and execute permissions (r-x)
6 : Read and write permissions (rw-)
7 : Read, write and execute permissions (rwx)
3:54 : chmod 527 |file-path|. This command sets the permissions of the owner of |file-path| to read and execute (but writing isn't permitted), the permissions of the file's owner group to write only (without read and execute), and gives all permissions to all other users (meaning, they can read, write and execute the given path).
-----------------------
Relevant links:
Permissions cheatsheet: https://moodle2.cs.huji.ac.il/nu18/mod/page/view.php?id=92559
The complete ownership and permissions playlist: https://www.youtube.com/playlist?list=PLuHmgt1HXB7DU7P3E63apf-zBHtPBqC1A
The complete shell tutorial playlist: https://www.youtube.com/playlist?list=PLuHmgt1HXB7AoJRbiSPzJ22uz34isVF__

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Shell tutorial part 9: changing permissions», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.