Les permissions sur fichiers et répertoires - #Linux 1.7

xavki
18 Apr 202222:47

Summary

TLDRDans cette vidéo dédiée aux débutants sur Linux, l'accent est mis sur la gestion des permissions des fichiers et des répertoires. L'auteur explique comment visualiser et modifier les droits d'accès via les commandes Linux, comme `ls`, `stat` et `getfacl`. Il aborde les modes de lecture, écriture, et exécution pour les utilisateurs, groupes, et autres. Le tutoriel inclut également une introduction aux permissions en mode octal ainsi qu'à la commande `chmod` pour changer les permissions et `chown` pour modifier les propriétaires de fichiers. L'objectif est de rendre ces concepts accessibles aux novices.

Takeaways

  • 📁 L'objectif de la vidéo est de couvrir les permissions de fichiers et répertoires pour débutants sous Linux.
  • 🔐 Les permissions sont divisées en trois blocs : utilisateur (propriétaire), groupe, et autres utilisateurs.
  • 👀 On peut visualiser les permissions via la commande 'ls -l', où chaque fichier ou répertoire affiche un triplet de caractères représentant les permissions de lecture (r), écriture (w), et exécution (x).
  • 🔄 Les permissions peuvent être modifiées avec la commande 'chmod', qui permet d'attribuer des droits en mode humain ou octal.
  • 🔢 Le mode octal simplifie la gestion des permissions en attribuant des valeurs numériques : 4 pour lecture, 2 pour écriture, et 1 pour exécution, ce qui permet de combiner les droits.
  • 👤 Les informations sur les utilisateurs et les groupes d'un fichier peuvent être obtenues via 'stat' et modifiées avec 'chown' pour changer le propriétaire ou le groupe.
  • 🔁 Le mode récursif avec 'chmod -R' permet de changer les permissions pour un répertoire et tout son contenu.
  • 📜 La commande 'chmod' peut également être utilisée pour ajouter (+) ou retirer (-) des permissions spécifiques pour l'utilisateur, le groupe, ou les autres utilisateurs.
  • 📝 Les fichiers et répertoires ont par défaut des permissions que l'on peut modifier pour rendre un fichier exécutable, lisible ou inscriptible.
  • 👥 Les groupes permettent de gérer des permissions partagées entre plusieurs utilisateurs, et 'chgrp' permet de changer le groupe associé à un fichier ou un répertoire.

Q & A

  • Qu'est-ce que l'objectif principal de cette vidéo?

    -L'objectif principal de cette vidéo est d'expliquer les permissions de fichiers et de répertoires sous Linux pour les débutants.

  • Quels sont les trois types de permissions de fichiers mentionnés?

    -Les trois types de permissions de fichiers mentionnés sont la lecture (r), l'écriture (w), et l'exécution (x).

  • Comment peut-on lister les permissions d'un fichier ou d'un répertoire?

    -On peut lister les permissions d'un fichier ou d'un répertoire en utilisant les commandes `ls -l`, `stat`, ou `getfacl`.

  • Comment interpréter le premier caractère des permissions listées par `ls -l`?

    -Le premier caractère des permissions listées par `ls -l` indique le type de fichier : un tiret (-) pour un fichier normal, un 'd' pour un répertoire, ou d'autres lettres pour des types de fichiers spéciaux (par exemple, 'l' pour un lien symbolique).

  • Que signifient les trois groupes de trois caractères dans les permissions (ex : `rwxr-xr--`)?

    -Les trois groupes de trois caractères indiquent les permissions pour le propriétaire (le premier groupe), le groupe (le deuxième groupe), et les autres utilisateurs (le troisième groupe).

  • Qu'est-ce que le mode octal et comment est-il utilisé pour définir les permissions?

    -Le mode octal est une représentation numérique des permissions où les valeurs 4, 2, et 1 représentent respectivement les permissions de lecture (r), d'écriture (w), et d'exécution (x). Ces valeurs sont additionnées pour chaque catégorie d'utilisateurs.

  • Comment changer les permissions d'un fichier en mode octal?

    -Pour changer les permissions d'un fichier en mode octal, on utilise la commande `chmod` suivie du code octal correspondant aux permissions souhaitées. Par exemple, `chmod 777 toto` rendrait un fichier entièrement accessible en lecture, écriture, et exécution à tous les utilisateurs.

  • Comment utiliser `chmod` pour ajouter ou retirer une permission spécifique à un utilisateur ou à un groupe?

    -Pour ajouter ou retirer une permission spécifique, on peut utiliser la syntaxe `chmod` suivie de l'opérateur (+ ou -) et de la permission à ajouter ou retirer (r, w, x), ainsi que de la catégorie d'utilisateur (u pour propriétaire, g pour groupe, o pour autres). Par exemple, `chmod o-w toto` retire l'écriture pour les autres utilisateurs.

  • Qu'est-ce que la commande `chown` et comment l'utiliser?

    -La commande `chown` permet de changer le propriétaire et/ou le groupe d'un fichier. Par exemple, `chown oki:sudo toto` change le propriétaire de `toto` à l'utilisateur `oki` et son groupe à `sudo`.

  • Pourquoi la commande `chmod` peut-elle être utilisée avec l'option `-R` (récursif)?

    -L'option `-R` de `chmod` permet d'appliquer les modifications de permissions de manière récursive, c'est-à-dire à tous les fichiers et sous-répertoires d'un répertoire donné.

Outlines

00:00

📂 Introduction aux permissions de fichiers sous Linux

L'orateur accueille les spectateurs à cette septième vidéo consacrée aux permissions de fichiers sous Linux pour débutants. Il explique que la vidéo couvre les bases, notamment la gestion des permissions de fichiers et de répertoires, avec des explications simples pour une meilleure compréhension. Il évoque également les commandes utilisées pour lister les permissions des fichiers, telles que `ls` et `stat`, et mentionne les concepts de modes (permissions) pour les fichiers et répertoires.

05:07

🖥️ Types de fichiers et leur représentation dans Linux

Ce paragraphe explique les différents types de fichiers que l'on peut rencontrer sous Linux, comme les fichiers simples, les répertoires, les périphériques de caractères, les liens symboliques et les sockets. Il détaille l'affichage de ces types dans les résultats de la commande `ls`, en se concentrant sur la première lettre de chaque ligne, qui indique le type de fichier. L'orateur mentionne aussi les liens symboliques et d'autres types de fichiers moins courants comme les pipes (p), les blocs de périphériques (b) et les portes (D).

10:12

🔐 Bloc de permissions et lecture des droits

L'orateur détaille le bloc de permissions constitué de trois séries de trois caractères, chacune représentant les permissions pour l'utilisateur, le groupe et les autres. Il explique ce que signifient les lettres `r` (lecture), `w` (écriture) et `x` (exécution), et comment elles s'appliquent aux fichiers et aux répertoires. Les permissions sont ensuite converties en mode octal, où `r`, `w` et `x` correspondent respectivement à 4, 2 et 1. Cette section approfondit la façon dont ces valeurs sont combinées pour créer des permissions spécifiques pour chaque type d'utilisateur.

15:13

🧮 Mode octal et gestion des permissions par chiffres

Ce paragraphe aborde la conversion des permissions en mode octal et comment utiliser des chiffres pour représenter les droits des utilisateurs, groupes et autres. L'orateur explique que chaque combinaison de permissions est représentée par un chiffre, ce qui permet de définir les droits d'accès à un fichier ou un répertoire de manière concise. Il décrit comment des valeurs comme 664 ou 775 se traduisent en permissions pratiques et donne des exemples de commandes `chmod` pour modifier ces droits.

20:18

🔄 Commande 'chmod' et modification des permissions

Cette section présente en détail l'utilisation de la commande `chmod` pour changer les permissions des fichiers et répertoires, que ce soit en mode octal ou en mode humain. L'orateur montre comment utiliser les options `+` et `-` pour ajouter ou retirer des permissions spécifiques, comme `+r` pour ajouter la lecture, ou `-w` pour retirer l'écriture. Il explique également l'option récursive `-R` pour appliquer des changements à un ensemble de fichiers ou à une arborescence complète.

Mindmap

Keywords

💡Permissions

Les permissions en Linux déterminent ce que les utilisateurs peuvent faire avec des fichiers et des répertoires. Les permissions sont divisées en trois catégories : lecture (r), écriture (w), et exécution (x). Dans la vidéo, le créateur explique comment ces permissions fonctionnent pour les propriétaires de fichiers, les groupes et les autres utilisateurs, un aspect fondamental de la gestion des fichiers sur Linux.

💡Fichier

Un fichier en Linux est une entité contenant des données, et il peut être associé à des permissions pour contrôler qui peut le lire, l’écrire ou l’exécuter. Le terme est utilisé tout au long de la vidéo pour illustrer les différents types de fichiers (simples, exécutables, etc.) et leurs permissions associées.

💡Répertoire

Un répertoire est l'équivalent d'un dossier dans d'autres systèmes d'exploitation, et il contient des fichiers ou d'autres répertoires. La vidéo traite des permissions sur les répertoires, ce qui est similaire aux fichiers, mais avec des spécificités, comme le droit d'entrer dans un répertoire (exécution).

💡chmod

La commande 'chmod' permet de modifier les permissions d'un fichier ou d'un répertoire. L'instructeur montre comment utiliser cette commande pour attribuer ou retirer les droits de lecture, écriture et exécution, soit en utilisant des modes symboliques (r, w, x) ou en utilisant des valeurs octales.

💡Valeur octale

La représentation des permissions en mode octal est une manière condensée de définir les droits d’accès en Linux. Chaque permission est représentée par un chiffre (lecture = 4, écriture = 2, exécution = 1) et la somme des chiffres détermine les droits. Par exemple, 777 signifie que tout le monde a des droits complets. La vidéo explique comment utiliser cette méthode pour gérer facilement les permissions.

💡rw-r--r--

C’est un exemple de chaîne de permissions en mode symbolique qui indique les droits d’un fichier. 'rw-' signifie que le propriétaire peut lire et écrire, mais pas exécuter; 'r--' signifie que les membres du groupe peuvent uniquement lire, et 'r--' pour les autres utilisateurs. La vidéo explique comment interpréter cette chaîne et l'importance de chaque segment.

💡Propriétaire

Le propriétaire d’un fichier ou d’un répertoire est l’utilisateur qui détient des droits spécifiques sur cet élément. En général, le propriétaire a plus de privilèges que les autres utilisateurs. La vidéo aborde comment les permissions du propriétaire peuvent être modifiées et gérées.

💡Groupe

Un groupe est un ensemble d'utilisateurs qui partagent les mêmes droits d'accès à un fichier ou à un répertoire. Dans la vidéo, il est expliqué que les membres d'un groupe peuvent avoir des permissions différentes de celles des autres utilisateurs ou du propriétaire du fichier.

💡Lecture (r)

La permission de lecture (r) permet à un utilisateur de voir le contenu d'un fichier ou la liste des fichiers dans un répertoire. La vidéo détaille comment cette permission peut être accordée ou refusée à différents types d’utilisateurs (propriétaire, groupe, autres).

💡Exécution (x)

La permission d’exécution (x) permet à un utilisateur de lancer un fichier en tant que programme ou d'entrer dans un répertoire. La vidéo explique son importance, notamment pour rendre un fichier script ou programme exécutable, et comment ajouter ou retirer cette permission.

Highlights

Bienvenue à la septième vidéo dédiée à Linux, aujourd'hui nous nous concentrerons sur les permissions de fichiers pour les débutants.

Présentation des trois modes principaux pour les permissions de fichiers et de répertoires : lecture, écriture, et exécution.

Introduction à l'affichage des permissions via la commande ls et explication des différentes colonnes affichées.

Discussion sur les modes de permissions en octal et en format lisible par l'humain.

Définition des niveaux de permissions : utilisateur, groupe, et autres utilisateurs.

Explication sur les symboles des permissions : r pour lecture, w pour écriture, et x pour exécution.

Illustration des permissions avec la commande stat et discussion sur l'identifiant utilisateur (UID) et l'identifiant de groupe (GID).

Différents types de fichiers et de répertoires avec des caractères spéciaux : d pour répertoire, - pour fichier, l pour lien symbolique, etc.

Utilisation de chmod pour changer les permissions, avec un exemple sur l'ajout et la suppression des droits d'exécution.

Explication sur les permissions par défaut en fonction du type de fichier ou de répertoire et la méthode pour les définir.

Présentation des permissions en mode octal et leur correspondance avec les combinaisons rwx.

Utilisation du mode récursif de chmod pour appliquer des permissions sur un répertoire et tous ses sous-répertoires.

Présentation de chown pour changer le propriétaire d'un fichier et de chgrp pour changer le groupe associé.

Distinction entre les utilisateurs et les groupes, ainsi que l'importance de l'utilisation de sudo pour l'élévation des privilèges.

Conclusion de la vidéo et encouragement à partager, s'abonner et commenter.

Transcripts

play00:00

[Music] Hey hello everyone I hope

play00:10

you are well welcome to this seventh video dedicated to linux and we have

play00:13

not finished discovering it today we are going to focus on permissions

play00:16

file permissions for beginners so I insist because

play00:20

behind there will possibly be small additions that

play00:24

will be made later but we're really going to see the basics of things

play00:28

I hope you enjoy this video don't hesitate to click on subscribe

play00:33

to not don't miss the next videos click on join if they

play00:35

wanted to support the channel talk about it around you that's what makes me

play00:38

happy you're discovering it more and more so we're going to get into

play00:43

file permissions and directories for beginners so already we

play00:47

are on a perimeter the permissions can also be used in

play00:50

other cases we will already focus on the perimeter of files

play00:54

and directories and we will also manage them in a simple way then sthat we

play00:59

haven't yet reviewed the elevations of privileges etc so we're really

play01:05

going to say segmenting things to really manage

play01:08

this in a slightly simpler way so how to list the permissions on

play01:14

files and directories so this what i'm going to do here i'm still

play01:18

in the directory we had in the previous video in the right terminal

play01:22

i'm going to make a heap off of a file called totals if i do

play01:27

an lsg of my toto file which is displays see here

play01:31

I do then I do the equivalent dclear but with a check it that

play01:37

's why I go back each time so we have three slightly

play01:41

standard modes there are still a few small modes to discover

play01:46

file permissions and its permissions we also call it

play01:51

modes so if you use tools of a sentence all know very often

play01:55

rather than putting permission we will see point mode and you have specified

play01:58

something there in this case then we will create a also a small directory

play02:04

we will do like this will be enough and leave I have a directory is a file

play02:09

if I do it is unreal in list mode that we have already seen it previously

play02:13

I do not need to do the top down it also allows you to display the

play02:17

hidden officer hidden files and starting with a having the name

play02:23

displayed by the hidden directories starting with a dot there in

play02:26

this case we will focus on this block this is on this block this is what

play02:30

we're going to find we're going to find so we're going where m this element there for the moment

play02:35

we're going to find here so the permission block we're also going to find the

play02:41

owner of the file and we're going to find the taste the group that's going to be

play02:46

considered for the file we will we will discover its right after so that it

play02:50

is fired it allows to see the permissions if I do an adventure stats

play02:55

my file toto the stats also to allow to display the permissions

play02:59

so there you just have to have an eye a little more informed we will find it er at

play03:03

the 6.6 access level then we will see we will suddenly have the permissions in

play03:09

two ways either in the way that we have seen here which is the simple mode we

play03:13

will say human reading or in octal mode the month of october what is it is

play03:18

a digital format as we were talking just after fairly simple to

play03:22

understand but you have to have a little bit in mind we will

play03:25

also find sent here the uid and the jeridi the uid so it's for the user heidi in

play03:32

this case the honor so here it's me these waters who is behind it it's

play03:38

him to lydie so the identifier in numerical form demont users who

play03:44

owns this file we have the same thing for the group we talked about it

play03:48

just a little bit later with the identifier of the group and the name of the

play03:52

group in question behind we find dates so access to modification

play03:56

and change here and then no doubt other information but will

play04:01

still agree we will come back to it in particular the i'm not knew interesting things

play04:05

and c etera but we'll see that later the other command so the speaker

play04:10

tabulation is watching tabulation and there I have different options that are offered for a

play04:14

month I'm going to be on the lookout I'm going to tabut the f&a

play04:19

clc if I do a check it to show go up at the top and I will

play04:23

always use non-files foo I do a get f to that of my file

play04:27

foo and there I will find this time again in a more readable way

play04:30

perhaps even for a beginner all the elements so you have this

play04:34

confirms to us that our file is self that our honor of fact of this

play04:37

file therefore owner of this seo file which the group since

play04:42

my users have a group which has the same name the group

play04:46

also its waters which is especially the permissions concerning three blocks of

play04:52

permissions 3 3 levels of permission the user therefore the honor in

play04:59

this case here namely therefore here permissions rw nothing at all the group r

play05:06

w nothing at all and the other users those who are not

play05:10

understood ic I look drawn drawn that's something that's important so we

play05:15

have three commands from ls the stats and the watch the face is her

play05:20

now what do we do if we redo our ls here that's it is what

play05:26

we see here when we are when we have done our hells first thing the

play05:31

first character here will be mentioned either one of for directory are drawn

play05:36

for a simple file what we find here we have a simple file so we have

play05:41

well attracted and a directory we have a d behind there are other

play05:45

meanings the it is for example for the characters device for example

play05:50

if I make invest and l2 flash dave we have already spoken about it the edf for device it is

play05:55

l all the peripherals will be for example disks and so on and

play05:59

well behind zoom out a little bit we will find so this famous it is in

play06:03

the first characters watch over there everywhere here so normal

play06:09

other element for example then that we will see that later the notion of

play06:13

symbolic link here we will be able to represent a file ier in different

play06:17

places without copying it what we call symbolic links and

play06:23

there so we would have her for example we have the pai pelras a little bit rarer

play06:27

still it is the p we have there the socks so crs the device blocks it's a b and

play06:35

the doors it's a big capital d and so we find it drawn from the five so

play06:41

the delay is running up to here it's already pretty good

play06:45

so how does it work what we see here at the screen when we do when we

play06:50

do our famous hells d'unréal with our file our directory so

play06:55

now we are going to be interested in the block in the series of blocks of three characters which

play06:59

follows here so we have three characters three characters three characters c' do

play07:05

we find and when we made the gat erased they also made them

play07:09

win face and l of toto we find the first block of three characters with r

play07:15

w draw rw draw two groups and r draw draw then so if we take here we have

play07:22

what we have just seen with the watch fcl so been postponed if we behind

play07:27

what does rwx mean it's quite easy to remember for reed w for wright

play07:34

and x for executables so earth for rita allow to read the file

play07:40

quite simply so there angot here we will find the first block for

play07:45

users the second block for users who are members of a group but

play07:49

not being honor then first group - pardon group for

play07:54

honor users pardon second block here for members of the group in this case of

play08:01

the oki group here who are not honors that is to say that they are not

play08:05

oki

play08:08

then we have the last block here that is to say when I am not honored nor

play08:13

in the group that is there here are the permissions that apply that is to say

play08:16

r pull therefore pull era for reading so we will be able to simply read the

play08:23

file w so that means that we will be able to just write in it x we ​​will be

play08:28

able to just execute it so you can imagine that we will need to

play08:31

combine all things see sometimes we will have need all three, that is

play08:34

to say rw and x it is for oneself why here we have a sort of triptych

play08:39

each time we have a triptych each time there in this case so we

play08:42

aerate w100 the x so it is not executable as such by me even

play08:47

if I want to change it we will see it right after we will be able to do an

play08:51

operation there in this case so we are not in

play08:54

octal mode as I told you c that is to say we are in easy-to-read human mode

play08:58

etc. if we want to switch to octal mode it is a little more a little

play09:03

more complicated, that is to say that rather than having

play09:08

nine elements to define the characteristics of a file or a

play09:14

directory in terms of mode permission we will see we will only have three

play09:18

but to have only three you see that we need to manage the

play09:22

rw and the x each time so we can define do we allow reading, writing

play09:27

and executing to manage this there is a very simple system see that here on

play09:33

the left is based on the darid equivalence for u do value of 4 a wright for

play09:39

a value of 2 and a executed bowl for a value of 1 i.e. if i

play09:45

want my files directory and characters in rw

play09:51

x features for honor here it will be necessary that this number so who is concise forgiveness

play09:58

swear this summit like that we encrypt by default if I define absolutely nothing

play10:02

then it will be displayed whatever happens to a directory will

play10:06

be displayed and that we will see it another time with typical permissions

play10:11

but applied to all by default but here in this case you see that if I

play10:17

want to assign rights with 3/10 jithree value I will have on the

play10:22

first value here I will have to associate rwx on the saddle from the middle r

play10:29

wx and on the third era wx also so there to manage that we have the

play10:35

4 the 2 and the 1 there in this case if we apply

play10:39

then if I had rwx is quite simple that is to say that 'we have the accumulation so we

play10:44

add the whole here in this case so rwx in this example there it

play10:49

corresponds to 7 quai if grw rw so suddenly if I resume my line here

play10:57

finally it corresponds to 1 6 6 I always go rw on the second so for

play11:04

groups I also have 6 and at the end I just have r for the other

play11:10

users users whose smells and

play11:14

suddenly I have just 1 1 to 4 so suddenly we end up with 664 and there

play11:21

indeed we're going to be done hop I'm just going to comment on this line here if we

play11:26

redo our toto status like this do I find here see that

play11:32

I have my mode here which is zero 664 then the zero we will see that later but

play11:37

I have 0 664 if I do on one see that I have 775 why so if we

play11:48

redo our hells rep one who is here what we have so we

play11:52

said that we arwx for honor for the group we air wx also and

play12:00

then we arx which will simply correspond to 5 so suddenly when

play12:06

we do our stats here we find 775 so that will be practical because

play12:11

it will allow in particular then in a lot of tools of infra ascot for

play12:15

example, we'll talk about it later, it makes it possible to define rather than change

play12:20

the rights for one year, we'll be able to define them, we'll see it even afterwards,

play12:26

too, it's going to be a little more practical, so here we're going to

play12:29

implement it, except that to implement it we will need

play12:33

commands first command that we need is to manage the change of

play12:37

mode so to change mode we will use ch mode if we make a match the

play12:41

ch mode we will find here the change of see mode with

play12:46

different options that we will find here among the other

play12:51

interesting options it will be to pull it open air it will be the recursive mode that is to

play12:55

say that I have an entire tree structure and on this whole tree structure for

play12:58

example I want apply read write read write

play13:03

775 we're going to say I haven't detailed it for you well I'm going to be able to make

play13:07

a dash in the open air and I'm going to apply it everywhere if I want to

play13:14

make it executable everywhere too but I'm going to be able make a dash

play13:17

in the open air and I will also be able to apply

play13:20

the the set you have the shot is small it is also which can be practical it is

play13:26

a verbose mode but which will only display the modifications which are going to

play13:31

be made so here we go use so

play13:34

in this case here we are going to make a ch mode and ch mode so we have different

play13:40

ways of being able to use it we will be able to use it either in

play13:43

human form or in octal form so if we want to do it in octal form so there

play13:48

I have already been able to tell you what we had on a dish

play13:54

so totals here you see that me what I want to do tothova it's very

play13:57

simple we're going to apply it everywhere read/write executable so to

play14:03

do that we're going to do a ch mode 777 so rwx and on toto like this

play14:13

so there if I do it again it is unreal you see then in addition my color has

play14:17

changed we have we have the coloring which vary and there you see that I find

play14:22

father well w xrw xrw x if I want to modify for example

play14:30

we are going here we are going to delete all the because acts how executable

play14:38

of the whole so both the honor the group and the other milk saw that

play14:46

suddenly I went here in 666 that is to say that I removed 1 and if I remove

play14:52

one when we go back to our table here it amounts to removing

play14:57

x6 I remove 4 for example here that there are only two left

play15:03

so if I apply the same thing here I remove 4 say that I do

play15:08

222 and well behind I will have removed

play15:12

the 4 it is to say reading and suddenly I only have writing everywhere

play15:17

if I don't want to use the octal mode here I don't feel very very

play15:24

comfortable with it and well I will be able to

play15:26

manage things from one another way I'm going to be able to do a ch mode and for

play15:30

example if I return things we said that we were in yeah here I

play15:37

want to put the reading back everywhere on toto I'm going to be able to do a more r the

play15:42

most r it's okay it's going to look what is currently happening on our know

play15:47

permission and it will add the read character on it if I put a

play15:53

plus x its added value also unfortunately as we did not specify sailboats of did

play16:00

not specify honor of groups and hauser commands suddenly it means

play16:07

that the plus x applies to all any user therefore suddenly to l together if

play16:14

for example here I want to delete the character

play16:17

written wable for the other users I will do a ch mode

play16:24

in up aux orres - w de toto au plat unfortunately if I don't read

play16:33

what I did what is happened is that I removed so can

play16:37

other for water for other the character written wable on the totals file so

play16:45

there we are in this condition there if I want to do it just

play16:48

for the kouassi group I want to do it for the group

play16:52

and at the same time here I am going to apply the same thing for the group and for the

play16:58

honor I will do for a hedge for I suddenly and booed I suddenly it

play17:04

allows me to withdraw it for the whole so suddenly we remove it is everywhere

play17:08

so that's about all about it so for the ch mode do nc the

play17:13

recursive mode is very important to remember so there in this case we have no

play17:17

wind can create a coach in rennes 1 and we will create a file a for example

play17:27

so if I do a it is unreal in the ground for example honda j I did it in

play17:34

recursive mode you see so I find here the rights on my rep 1

play17:40

which are here my europe 1 he has his rights if we find in particular 775 and

play17:47

behind here we are in line at that is to say that we is in

play17:52

664 is behind so if I want to change his rights both for the coi for

play18:00

the set of rep 1 so what we are going to do we are going to make a big change

play18:04

here we are going to pass a chu mode six years for example and there I'm going to pass a

play18:10

dash in the fresh air on reindeer 1 on the dish oh yes I don't have the rights

play18:16

it doesn't matter to me the mayor like this

play18:21

so don't worry due to a pager don't type don't worry about what

play18:27

I'm doing here we will we will see very soon what south represents or

play18:31

therefore south or for soft super user and there in this case if I f ais she

play18:38

is unreal r ah yes because yeah ok then it was not the good example to

play18:42

achieve at all it does not matter

play18:49

so I made a top 6 it is time that they reacted like that we are going to do

play18:54

a ch mode before

play19:01

mode [Music]

play19:05

17.1 of file ah

play19:12

yeah it does not matter there we will go into too many details afterwards if I want

play19:16

to explain it does not matter then so we will return to our directory of to our

play19:23

file simple totals here our totals file yeah because

play19:30

I'm not going to go into the details otherwise well then our

play19:34

totals file here it has its rights here and it has this honor and soyuz hours except that

play19:39

what is happening happens if I want to change honor from honor and

play19:44

groups and user from honor or group so we have at the linux level the

play19:50

notion of the user of users so it's users for example oki

play19:55

but there are some there are many others on the machine, we also have

play20:00

the notion of a group, the groups bring together several users and

play20:06

suddenly we end up with the possibility ibility to give rights therefore of honor

play20:12

therefore to specifically manage the case of a user on this file there and

play20:17

generally give him the most advanced rights of course therefore generally

play20:21

the rights which are here are more advanced than those which are there which are

play20:24

more advanced than those who are here and here we have the group the group him

play20:29

generally it will be other users of course than this

play20:33

user where this user there but he will have a particular case which will

play20:39

therefore apply there that is what happens if, for example, I want to change

play20:42

group to change group we will use then we can use

play20:48

challenge group which will allow group modifications to be made or

play20:53

else we have read challenge rhône which allows us

play20:57

to change honor i.e. of the user who is here in

play21:02

this case the if we want to change users I did not use black

play21:09

and elevation of privileges without doing it so it does not matter there for

play21:13

example if i want to give 'user so we had seen

play21:16

the road user who is the one who runs and the case the most rights

play21:20

on the machine so all the rights on the machine there in this case I

play21:24

will be able to specify the user like these and then

play21:27

possibly apply here foo like these and there of course we need

play21:33

permissions don't want to explain to you the notions of permissions escape from what

play21:37

derivation of privileges right away so there we will be able to change

play21:41

users of foo if at the same time I want to change users let's admit

play21:48

that it's not at kiki we are the owner but if I want to change both

play21:53

owners and group at the same time for example there is a group

play21:56

called sud where is I can apply these h hne oki for the

play22:01

honor and south or for the group like this so there if I redo it is drawn

play22:06

it is simply you see who if the group has changed and the group

play22:11

has become south where the same way if for example I did not want is not change

play22:16

the user and I want to put it back to the group oki not what I do is that

play22:20

the separator that she colon I have not read anything m before is on the other hand I

play22:23

put him or who simply is here if he make you shoot her you see

play22:28

that suddenly I find myself as if for that very rarely united 6 the chad

play22:31

group we will rather use the ch hawn and we will use it both for the

play22:35

groups and for the honors that's why I'm not asking you too much about the

play22:38

group challenge here so I hope you liked this video don't hesitate to

play22:42

share to put blue shoots commented on me I'll tell you see you very soon

play22:46

on the harkis

Rate This

5.0 / 5 (0 votes)

Related Tags
LinuxPermissions fichiersDébutants LinuxChmodChownRépertoiresSystème UnixFormation LinuxCommandes terminalOctal mode
Do you need a summary in English?