Problèmes et questions concernant l'édition KDE.
#1Messageil y a 7 ans à tous
j'ai voulu créer un deuxième utilisateur pour y installer un autre Environnement de Bureau
et là après mon :
j'obtiens !
" mon_user " n'apparaît pas dans le fichier sudoers. Cet évènement sera signalé
et point final je reviens à l'invite sans pouvoir aller plus loin ....
Une idée
Un grand Merci pour votre aide
Manjaro 22.1.0 Talos ~ Xfce4-Stable ~ Linux 6.2.9-1 ~ Intel Core i7 ~ 16 Go RAM ~ Intel Xeon E3-1200 v3/4th ~ Ssd 250 Go + Ssd 120 Go~Realtek ALC892
Dernière modification par
janodherepioil y a 7 ans, modifié au total 1 fois.
#2Messageil y a 7 ansbonjour,
c'est normal
1) tu peux passer ton autre user à sudo
sudo -u monprenierlogin pacman -S ...
2) tu peux attribuer des droits admin au nouveau utilisateur
/etc/sudoers
il y a 2 solutions, dans ce fichier a la fin tu as une des 2 lignes :
#includedir /etc/sudoers.d
monlogin ALL=(ALL) ALL
il faut ajouter le nouvel utilisateur dans ce fichier ou dans un fichier dans le dossier /etc/sudoers.d/
si include est déjà utilisé Manjaro STABLE - Linux lts - fish - Kde5 - icore N100 - 16Go RAM - ssd - efi
#mount /dev/archlinux /mnt/manjaro
#3Messageil y a 7 anspapajoke a écrit :bonjour,
C'est normal
1) tu peux passer ton autre user à sudo
sudo -u monprenierlogin pacman -S ...
2) tu peux attribuer des droits admin au nouveau utilisateur
/etc/sudoers
il y a 2 solutions, dans ce fichier a la fin tu as une des 2 lignes :
includedir /etc/sudoers.d
monlogin ALL=(ALL) ALL
il faut ajouter le nouvel utilisateur dans ce fichier ou dans un fichier dans le dossier
/etc/sudoers.d/
si include est actif (pas de # avant)
Donc :
1) tu peux passer ton autre user à sudo
sudo -u monprenierlogin pacman -S ...
c'est a dire :
sudo -u "mon1eruser pacman -S "et le logicielainstallerquivabien
2) tu peux attribuer des droits admin au nouveau utilisateur
/etc/sudoers
il y a 2 solutions, dans ce fichier a la fin tu as une des 2 lignes :
Code : Tout sélectionner
includedir /etc/sudoers.d
monlogin ALL=(ALL) ALL
-comme je ne suis pas bien sûr voici ci dessous les dernières ligne de mon fichier /etc/sudoers
##
## Runas alias specification
##
##
## User privilege specification
##
root ALL=(ALL) ALL
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Uncomment to allow members of group sudo to execute any command
# %sudo ALL=(ALL) ALL
## Uncomment to allow any user to run sudo if they know the password
## of the user they are running the command as (root by default).
# Defaults targetpw # Ask for the password of the target user
# ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'
## Read drop-in files from /etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /etc/sudoers.d
donc si j'ai bien compris :
je supprime "#" devand includedir
et je rajoute :
"monnouveluser" ALL= (ALL) ALL
et donc "monnouveluser" aura les droits admin !
Exact ?
Merci de ton aide Manjaro 22.1.0 Talos ~ Xfce4-Stable ~ Linux 6.2.9-1 ~ Intel Core i7 ~ 16 Go RAM ~ Intel Xeon E3-1200 v3/4th ~ Ssd 250 Go + Ssd 120 Go~Realtek ALC892
#4Messageil y a 7 ans
Hummm .... personne pour confirmer ou infirmer mes propos ?
Bizarre
Manjaro 22.1.0 Talos ~ Xfce4-Stable ~ Linux 6.2.9-1 ~ Intel Core i7 ~ 16 Go RAM ~ Intel Xeon E3-1200 v3/4th ~ Ssd 250 Go + Ssd 120 Go~Realtek ALC892
#5Messageil y a 7 ansil y avait aussi une solution avec le groupe wheel mais non utilisée avec ta manjaro : on donne les droits admin au groupe, et l'on ajoute notre utilisateur au groupe.
janodherepio a écrit :donc si j'ai bien compris :
je supprime "#" devand includedir
et je rajoute
non il est écrit : ## (the '#' here does not indicate a comment)
donc sudoers va chercher un fichier de droits dans le sous répertoire, c'est apparemment ta configuration
janodherepio a écrit :et je rajoute :
monnouveluser ALL= (ALL) ALL
et donc "monnouveluser" aura les droits admin !
Exact ?
oui si tu ajoutes simplement cette ligne dans le fichier sudoers MAIS, pour le même résultat, la config manjaro (préférable car fichier appartient au paquet sudo) est de créer un fichier dans le sous-répertoire avec cette ligne dedans.
EDIT: pour le nom , aucune idée (le login?) il faut regarder dans le sous dossier Manjaro STABLE - Linux lts - fish - Kde5 - icore N100 - 16Go RAM - ssd - efi
#mount /dev/archlinux /mnt/manjaro
#6Messageil y a 7 ans
papajoke a écrit :Exact ? oui si tu ajoutes simplement cette ligne dans le fichier sudoers MAIS, pour le même résultat, la config manjaro (préférable car fichier appartient au paquet sudo) est de créer un fichier dans le sous-répertoire avec cette ligne dedans.
Ok ... et il y aurait un nom "prédestiné" pour ce fichier ? Un idée de son appellation ?
Un grand Merci pour ton aide.
Manjaro 22.1.0 Talos ~ Xfce4-Stable ~ Linux 6.2.9-1 ~ Intel Core i7 ~ 16 Go RAM ~ Intel Xeon E3-1200 v3/4th ~ Ssd 250 Go + Ssd 120 Go~Realtek ALC892
#7Messageil y a 7 ansnormalement avec manjaro settings -> utilisateurs il doit-être possible de passer l'utilisateur en admin par un simple clic
ps: pourquoi faire simple Manjaro STABLE - Linux lts - fish - Kde5 - icore N100 - 16Go RAM - ssd - efi
#mount /dev/archlinux /mnt/manjaro
#8Messageil y a 7 ans Manjaro 22.1.0 Talos ~ Xfce4-Stable ~ Linux 6.2.9-1 ~ Intel Core i7 ~ 16 Go RAM ~ Intel Xeon E3-1200 v3/4th ~ Ssd 250 Go + Ssd 120 Go~Realtek ALC892
#9Messageil y a 7 ansCa ne marche pas chez moi, il me demande d'activer wheel, puis de changer l'appartenance à des groupes, etc... Manjaro en dual boot vista sous XFCE
#10Messageil y a 6 ansJ'ai résolu le problème ainsi:
- ouvrir Octopi
- aller dans Outils / Nettoyeur de cache et nettoyer !