sudo: Le fichier /etc/sudoers est ouvert en écriture pour tous
sudo: aucune source sudoers valide n'a été trouvée, fin d'exécution
sudo: impossible d'initialiser le greffon de règles
chmod 444 /etc/sudoers
chmod: modification des droits de '/etc/sudoers': Opération non permise
sudo chmod 444 /etc/sudoers
sudo: Le fichier /etc/sudoers est ouvert en écriture pour tous
sudo: aucune source sudoers valide n'a été trouvée, fin d'exécution
sudo: impossible d'initialiser le greffon de règles
donc en gros ils me disent que c'est pas de leur faute et que c'est avec le support de mon OS que je dois discuter .... le support c'est nous en fait ^^ qui a les épaules assez larges pour s'attaquer à cette problématique ?
du coup je ne peux pas utiliser mon vpn ce qui m'ennuie profondément ....
sudo: Le fichier /etc/sudoers.d est ouvert en écriture pour tous
me conseillez-vous un "chmod" ? je parlais d'un "444" mais pas certains que ce soit tip top ? si cette procédure vous semble pertinente, quels chiffres devrais-je mettre pour récupérer mon "sudoers.d" ? ou avez-vous une autre piste ?
-r--r----- 1 root root 755 jan 18 2018 sudoers
drwxrwxrwx 2 root root 4096 oct 25 16:39 sudoers.d
ton lien je l'ai dans mes bookmarks mais c'est pas super limpide à mes yeux si non je poserais pas la question et j'ai surtout pas envie de recommencer à faire n'importe quoi
Perso, j'ouvrirai thunar en mode admin et clic droit sur le fichier (sudoers.d), propriétés et l'onglet Permission avec les réglages suivants : Accès : lecture seule
Groupe : Root
Accès : lecture seule
Autres : Aucun
Voila voilou, personnellement je n'ai pas ce fichier.
en fait c'est un dossier qui possède un fichier " README "
qui contient
#
# As of Debian version 1.7.2p1-1, the default /etc/sudoers file created on
# installation of the package now includes the directive:
#
# #includedir /etc/sudoers.d
#
# This will cause sudo to read and parse any files in the /etc/sudoers.d
# directory that do not end in '~' or contain a '.' character.
#
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode 0440.
#
# Note also, that because sudoers contents can vary widely, no attempt is
# made to add this directive to existing sudoers files on upgrade. Feel free
# to add the above directive to the end of your /etc/sudoers file to enable
# this functionality for existing installations if you wish!
#
# Finally, please note that using the visudo command is the recommended way
# to update sudoers content, since it protects against many failure modes.
# See the man page for visudo for more information.
#
donc on a bien " and all files in this directory should be mode 0440 " qui répond à ma question
sudo mount /dev/sda1 /mnt
mount: /mnt : type de système de fichiers « LVM2_member » inconnu.
sudo mount /dev/sda /mnt
mount: /mnt : /dev/sda déjà monté ou point de montage actif.
sudo chmod 755 /mnt/etc
chmod: impossible d'accéder à '/mnt/etc': Aucun fichier ou dossier de ce type
pkexec visudo
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Il est nécessaire de s'authentifier pour lancer le programme « /usr/sbin/visudo » en tant que super-utilisateur
Multiple identities can be used for authentication:
1. XXXX
2. ,,, YYYYY
Choose identity to authenticate as (1-2): 1
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
sudo file /etc/sudoers.d/README
sudo: impossible d'appliquer la fonction stat à /etc/sudoers.d/README: Permission non accordée
/etc/sudoers.d/README: ASCII text
sudo cat /etc/sudoers.d/README
sudo: impossible d'appliquer la fonction stat à /etc/sudoers.d/README: Permission non accordée
#
# As of Debian version 1.7.2p1-1, the default /etc/sudoers file created on
# installation of the package now includes the directive:
#
# #includedir /etc/sudoers.d
#
# This will cause sudo to read and parse any files in the /etc/sudoers.d
# directory that do not end in '~' or contain a '.' character.
#
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode 0440.
#
# Note also, that because sudoers contents can vary widely, no attempt is
# made to add this directive to existing sudoers files on upgrade. Feel free
# to add the above directive to the end of your /etc/sudoers file to enable
# this functionality for existing installations if you wish!
#
# Finally, please note that using the visudo command is the recommended way
# to update sudoers content, since it protects against many failure modes.
# See the man page for visudo for more information.
#
sudo mimetype /etc/sudoers.d/README
sudo: impossible d'appliquer la fonction stat à /etc/sudoers.d/README: Permission non accordée
/etc/sudoers.d/README: text/x-readme
Tout semble pareil au lien sauf comme d'habitude
sudo: impossible d'appliquer la fonction stat à /etc/sudoers.d/README: Permission non accordée
#
# As of Debian version 1.7.2p1-1, the default /etc/sudoers file created on
# installation of the package now includes the directive:
#
#includedir /etc/sudoers.d
#
# This will cause sudo to read and parse any files in the /etc/sudoers.d
# directory that do not end in '~' or contain a '.' character.
#
# Note that there must be at least one file in the sudoers.d directory (this
# one will do), and all files in this directory should be mode 0440.
#
# Note also, that because sudoers contents can vary widely, no attempt is
# made to add this directive to existing sudoers files on upgrade. Feel free
# to add the above directive to the end of your /etc/sudoers file to enable
# this functionality for existing installations if you wish!
#
# Finally, please note that using the visudo command is the recommended way
# to update sudoers content, since it protects against many failure modes.
# See the man page for visudo for more information.
#
pour l'instant si j'utilise "sudo" l'erreur avec "README" reste