Pare-feu [Réglé]
Configurer
Discussions Libres

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Reprise du message précédent
Ourck20-1 :
@nic80,
Houhou, là, inquiet!
Celà dit, pour modifier quoique ce soit (qq de "mal" intentionné) il faut mon mot de passe root j'espère !
Bien
F.
Citation :
En gros tout le monde peut voir ce répertoire (et potentiellement faire des modifs dessus)
Houhou, là, inquiet!
Celà dit, pour modifier quoique ce soit (qq de "mal" intentionné) il faut mon mot de passe root j'espère !
Bien
F.
Bien non, il ne faut rien de particulier, car les droits sont :
Code BASH :
RWXRWXRWX RWX RWX RWX 111 111 111 7 7 7
user group other,
Donc other (n'importe qui), peut modifier quoi que ce soit sur le répertoire.
Si tu veux changer, il faut taper la commande :
Code BASH :
chmod 700 /home/fred
et 700 :
Code BASH :
7 0 0 111 000 000 rwx --- --- rwx------
EDIT : change "PC" par "Répertoire", merci Nic80
Édité par Jybz Le 21/05/2019 à 22h39
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

nic80 Membre non connecté
-
- Voir le profil du membre nic80
- Inscrit le : 06/08/2018
- Groupes :
-
Modérateur
Citation :
peut modifier quoi que ce soit sur le PC
Sur le répertoire, non ( sur le pc complet j' en doute !) ?

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
J'ai suivi, je pense, ton avis et:
Citation :
[root@linux fred]# chmod 700 /home/fred
[root@linux fred]# ls -lisah /home/
total 12K
44564481 4,0K drwxr-xr-x 3 root root 4,0K mai 11 08:44 ./
2 4,0K drwxr-xr-x 19 root root 4,0K mai 9 08:16 ../
44564482 4,0K drwx------ 38 fred fred 4,0K mai 22 05:37 fred/
44564484 0 lrwxrwxrwx 1 root root 10 mai 3 13:10 live -> /home/fred/
[root@linux fred]# chmod 700 /home/fred
[root@linux fred]# ls -lisah /home/
total 12K
44564481 4,0K drwxr-xr-x 3 root root 4,0K mai 11 08:44 ./
2 4,0K drwxr-xr-x 19 root root 4,0K mai 9 08:16 ../
44564482 4,0K drwx------ 38 fred fred 4,0K mai 22 05:37 fred/
44564484 0 lrwxrwxrwx 1 root root 10 mai 3 13:10 live -> /home/fred/
Verdict ???

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Je pense que c'est bon.
De plus, tu as comme moi le lien symbolique de /home/live/ vers le premier utilisateur /home/fred/.
Tu peux le supprimer.
Si tu ne peux pas le supprimer simplement depuis l'explorateur de fichier (comme Dolphin ou Thunar), tu peux le faire en tant que root en ligne de commande, :
su
(on te demandera de taper le mot de passe root)
rm -i /home/live
(on te demandera si tu es sûr de vouloir le supprimer, tu tapes o ou oui je ne me souviens plus, puis tu valide)
exit
exit
Ça serait bon normalement.
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
Citation :
# rm -i /home/live
rm : supprimer lien symbolique '/home/live' ? o
[root@linux fred]# msecgui
/usr/share/msec/msecgui.py:22: PyGIWarning: GdkPixbuf was imported without specifying a version first. Use gi.require_version('GdkPixbuf', '2.0') before import to ensure that the right version gets loaded.
from gi.repository import GdkPixbuf
/usr/share/msec/msecgui.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
INFO: Starting gui..
INFO: Chargement du fichier d'exceptions /etc/security/msec/exceptions : [Errno 2] Aucun fichier ou dossier de ce type: '/etc/security/msec/exceptions'
INFO: Pas d'exceptions chargées
INFO: Niveau msec de base détecté 'standard'
/usr/share/msec/msecgui.py:236: DeprecationWarning: Gtk.Widget.modify_font is deprecated
label.modify_font(Pango.FontDescription("13"))
/usr/lib/python3.5/site-packages/gi/overrides/Gtk.py:1487: DeprecationWarning: Gtk.Table.attach is deprecated
Gtk.Table.attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding)
/usr/share/msec/tools.py:28: ResourceWarning: unclosed file <_io.TextIOWrapper name=11 encoding='UTF-8'>
data = os.popen("iptables -S").readlines()
/usr/share/msec/msecgui.py:833: DeprecationWarning: Gtk.TreeView.set_rules_hint is deprecated
treeview.set_rules_hint(True)
(msecgui.py:16421): Gtk-WARNING **: Allocating size to GtkWindow 0x8548230 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
rm : supprimer lien symbolique '/home/live' ? o
[root@linux fred]# msecgui
/usr/share/msec/msecgui.py:22: PyGIWarning: GdkPixbuf was imported without specifying a version first. Use gi.require_version('GdkPixbuf', '2.0') before import to ensure that the right version gets loaded.
from gi.repository import GdkPixbuf
/usr/share/msec/msecgui.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
INFO: Starting gui..
INFO: Chargement du fichier d'exceptions /etc/security/msec/exceptions : [Errno 2] Aucun fichier ou dossier de ce type: '/etc/security/msec/exceptions'
INFO: Pas d'exceptions chargées
INFO: Niveau msec de base détecté 'standard'
/usr/share/msec/msecgui.py:236: DeprecationWarning: Gtk.Widget.modify_font is deprecated
label.modify_font(Pango.FontDescription("13"))
/usr/lib/python3.5/site-packages/gi/overrides/Gtk.py:1487: DeprecationWarning: Gtk.Table.attach is deprecated
Gtk.Table.attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding)
/usr/share/msec/tools.py:28: ResourceWarning: unclosed file <_io.TextIOWrapper name=11 encoding='UTF-8'>
data = os.popen("iptables -S").readlines()
/usr/share/msec/msecgui.py:833: DeprecationWarning: Gtk.TreeView.set_rules_hint is deprecated
treeview.set_rules_hint(True)
(msecgui.py:16421): Gtk-WARNING **: Allocating size to GtkWindow 0x8548230 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Voili... Heu, j'ai pas attendu msec et les warnings sont-ils importants dans ce cas?
Ben oui, distrib installée via live ! Et grâce à votre collaboration ACTIVE, ça tourne rond, même en 32b !
J'attends la MAGEIA 7 pour passer en 64b, et je ne vais surtout pas faire mumuse avec Cauldron !
C'est pas pour moi...Pour l'instant

Tournée générale...Virtuelle ):
Fred.
PS: est-ce que fschk est utile en automatique ?

Jybz Membre non connecté
-
- Voir le profil du membre Jybz
- Inscrit le : 10/10/2018
- Groupes :
-
Administrateur
-
Forgeron
Ourck20-1 :
@Jybz
Voili... Heu, j'ai pas attendu msec et les warnings sont-ils importants dans ce cas?
Citation :
# rm -i /home/live
rm : supprimer lien symbolique '/home/live' ? o
[root@linux fred]# msecgui
[...]
(msecgui.py:16421): Gtk-WARNING **: Allocating size to GtkWindow 0x8548230 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
rm : supprimer lien symbolique '/home/live' ? o
[root@linux fred]# msecgui
[...]
(msecgui.py:16421): Gtk-WARNING **: Allocating size to GtkWindow 0x8548230 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Voili... Heu, j'ai pas attendu msec et les warnings sont-ils importants dans ce cas?
Le warning est à propos de GTK, ne t'en préoccupes pas.
Ourck20-1 :
Ben oui, distrib installée via live ! Et grâce à votre collaboration ACTIVE, ça tourne rond, même en 32b !
J'attends la MAGEIA 7 pour passer en 64b, et je ne vais surtout pas faire mumuse avec Cauldron !
C'est pas pour moi...Pour l'instant
Ben oui, distrib installée via live ! Et grâce à votre collaboration ACTIVE, ça tourne rond, même en 32b !
J'attends la MAGEIA 7 pour passer en 64b, et je ne vais surtout pas faire mumuse avec Cauldron !
C'est pas pour moi...Pour l'instant

Moi aussi j'ai ce dossier live même si je n'ai pas installé via un clef live, mais à partir d'une clef réseau.
Ourck20-1 :
Tournée générale...Virtuelle ):
Fred.
PS: est-ce que fschk est utile en automatique ?
Fred.
PS: est-ce que fschk est utile en automatique ?
à la tienne !
Téléverser une image : /wiki/hebergement-de-fichiers-sur-mlo
Arch | Machine | OS |
x86_64 | lenovo x250 | mga9 |
armv7hl | bananapro | mga9 |
aarch64 | Raspberry Pi 4B | mga9 |

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
A très vite

Fred.

stroibe974 Membre non connecté
-
- Voir le profil du membre stroibe974
- Inscrit le : 13/08/2018
- Groupes :
-
Modérateur

Ourck20-1 Membre non connecté
-
- Voir le profil du membre Ourck20-1
- Inscrit le : 06/05/2019
- Groupes :
Bien
F.
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie