Ne pas cliquer
Parrain-Linux
peut lancer des échardes de givre !
Écrire un nouveau message
Page : 1
dossier (inode/directory)
Avatar
lebilboquet
utilisateur
Filleul
Inscrit le : 19/03/2014
Messages : 110
Point(s) : 763
OS souhaité : Linux Mint
Localisation :
Québec, Québec - Capitale-Nationale, Canada
Posté le 23/03/2015 à 08:31:07
Citer

Sous propriétés de la partition /
j'obtiens "certains éléments sont impossible à lire ".


Comment savoir pourquoi ?

Merci

_________________
lb
Remonter Descendre Permalien du message
Avatar
Antonin
utilisateur
Mixte
Inscrit le : 18/06/2014
Messages : 267
Point(s) : 1431
Localisation :
La Roche sur Yon, Vendée, France
Posté le 23/03/2015 à 09:17:42
Citer

Certains éléments sont verrouillés par le système, par exemple des .lock et autres qui n'ont d'utilité que pour l'os lui même.

Tu peut toujours vérifier si il n'y a rien d'anormal en faisant un :
Code:

#lsof +D /tmp

Par exemple pour savoir qui ou quel process utilise des fichiers dans /tmp

Et aussi en faisant un top tu voudrais voir quel process utilise quels fichiers
Code:

#lsof +p


Inversement pour savoir quel process utilise ce fichier :
Code:

#fuser nom_du_fichier


et si tu veux obtenir l'arbre d'un process :

Code:

#ptree (ou pstree) numero_du_process


et sinon tu peut toujours allez lire le man de lsof qui est un des outils systèmes polyvalents sur les fichiers : http://www.delafond.org/traducmanfr/man/man8/lsof.8.html

Dernière édition le 23/03/2015 à 09:22:29
Remonter Descendre Permalien du message
Avatar
lebilboquet
utilisateur
Filleul
Inscrit le : 19/03/2014
Messages : 110
Point(s) : 763
OS souhaité : Linux Mint
Localisation :
Québec, Québec - Capitale-Nationale, Canada
Posté le 23/03/2015 à 09:57:32
Citer

Merci pour votre rapidité Antonin.
Et je découvre encore quelque chose.

Roger

_________________
lb
Remonter Descendre Permalien du message
Avatar
magnux77
utilisateur
Parrain
Inscrit le : 03/12/2011
Messages : 118
Point(s) : 631
Distribution : Mageia
Localisation :
Champs-sur-Marne, Seine-et-Marne, France
Posté le 23/03/2015 à 10:42:57
Citer

Parce que sous /, tu n'as pas forcément les autorisations, même pour la lecture parfois.

Le 1er champ indique sur 7 caractères :
 - 1 : directory (dossier) ou non, link (lien) ou non
 - 2,3,4 : read, write,xecute pour le propriétaire
 - 5,6,7 : read, write,xecute pour le groupe auquel appartient le propréitaire
 - 8,9,10 : read, write,xecute pour les autres

Aussi quand je me ballade sous / dans l'arborescence du système en tant qu'utilisateur lambda, il y a un certain nombre de dossiers ou de fichiers que je ne peux même pas consulter. Ceux dont les derniers caractères du 1er champ qui définit les autorisations données par le propriétaire indique "- - -" : no write, no read, no execute pour les autres

bash-4.3$ ls -al
total 15784
drwxr-xr-x  24 root root     4096 févr. 11 18:33 .
drwxr-xr-x  24 root root     4096 févr. 11 18:33 ..
lrwxrwxrwx   1 root root        7 févr. 11 16:16 bin -> usr/bin
drwxr-xr-x   5 root root    12288 mars  19 08:49 boot
drwx------   3 root root     4096 nov.  28 09:04 .dbus
-rw-------   1 root root 16032712 mars  23 09:14 dead.letter
drwxr-xr-x  21 root root     3860 mars  23 08:37 dev
drwxr-xr-x 113 root root    12288 mars  21 19:32 etc
drwxr-xr-x  13 root root     4096 mars   2 16:28 home
drwxr-xr-x   2 root root     4096 févr. 11 16:16 initrd
lrwxrwxrwx   1 root root        7 févr. 11 16:16 lib -> usr/lib
lrwxrwxrwx   1 root root        9 févr. 11 16:16 lib64 -> usr/lib64
drwx------   2 root root    16384 nov.  28 09:03 lost+found
drwxr-xr-x   2 root root     4096 févr. 11 16:16 media
drwxr-xr-x   2 root root     4096 févr. 11 16:16 mnt
drwxr-xr-x   4 root root     4096 févr. 11 16:16 opt
dr-xr-xr-x 210 root root        0 mars  23 09:36 proc
drwxr-x---  19 root root     4096 mars  23 10:21 root
drwxr-xr-x  28 root root      820 mars  23 10:01 run
drwxr-xr-x   4 root root    20480 nov.  15 16:15 SaveHomes
drwxr-xr-x   3 root root     4096 févr.  2  2014 SaveSlash
lrwxrwxrwx   1 root root        8 févr. 11 16:16 sbin -> usr/sbin
drwxr-xr-x   2 root root     4096 févr. 11 16:16 srv
dr-xr-xr-x  13 root root        0 mars  23 09:36 sys
drwxrwxrwt  14 root root      340 mars  23 09:14 tmp
drwxr-xr-x  14 root root     4096 févr. 11 18:33 usr
drwxr-xr-x  16 root root     4096 févr. 11 18:33 var
drwxr-xr-x  11 jps   483     4096 mars   8 09:30 VirtualBox VMs
bash-4.3$

Dernière édition le 23/03/2015 à 10:44:07
_________________
Pourquoi se priver quand on peut être libre...
Membre de l'April. Soutien Framasoft.
Remonter Descendre Permalien du message
Avatar
Antonin
utilisateur
Mixte
Inscrit le : 18/06/2014
Messages : 267
Point(s) : 1431
Localisation :
La Roche sur Yon, Vendée, France
Posté le 23/03/2015 à 10:51:40
Citer

Pour coroborer les dires de Magnux77 je préfére un -ail comme option :
Code:

root@monserveur:~# ls -ail /
total 96
2 drwxr-xr-x  22 root root  4096 janv.  6 12:32 .
2 drwxr-xr-x  22 root root  4096 janv.  6 12:32 ..
8519681 drwxr-xr-x   2 root root  4096 déc.  31 15:14 bin
2 drwxr-xr-x   4 root root  4096 janv.  6  2014 boot
1025 drwxr-xr-x  15 root root 14280 janv. 28 10:29 dev
25427969 drwxr-xr-x  96 root root  4096 mars  23 10:56 etc
16384001 drwxr-xr-x   8 root root  4096 juil. 11  2014 home
4718593 drwxr-xr-x  11 root root  4096 janv.  6  2014 lib
23330817 drwxr-xr-x   2 root root  4096 févr. 12  2014 lib64
11 drwx------   2 root root 16384 janv.  6  2014 lost+found
22020097 drwxr-xr-x   3 root root  4096 oct.  10  2012 media
9830401 drwxr-xr-x   2 root root  4096 juin  17  2012 mnt
1 dr-xr-xr-x 143 root root     0 janv. 28 10:20 proc
15466497 drwx------   8 root root  4096 mars  17 13:31 root
3149 drwxr-xr-x  17 root root   620 mars  23 00:00 run
9961473 drwxr-xr-x   2 root root 12288 mars   9 09:16 sbin
23592961 drwxr-xr-x   2 root root  4096 juin  10  2012 selinux
25034753 drwxr-xr-x   2 root root  4096 oct.  10  2012 srv
1 dr-xr-xr-x  11 root root     0 janv. 28 10:20 sys
17956865 drwxrwxrwt   6 root root  4096 mars  23 10:57 tmp
12058625 drwxr-xr-x  10 root root  4096 oct.  10  2012 usr
20054017 drwxr-xr-x  14 root root  4096 févr. 12  2014 var

Dernière édition le 23/03/2015 à 10:51:52
Remonter Descendre Permalien du message
Écrire un nouveau message
Page : 1
Page générée en 0.0674 seconde(s).