Hallo zusammen,
vielen Dank für eure Hilfe. Ich habe jetzt die Lösung gefunden. Es lag an einem sssd package, welches die /etc/nsswitch.conf geändert hat, sodass nicht auf die sudoers Datei geschaut wurde, sondern auf die Einstellungen von sssd. Nachdem ich den sudoers sss eintrag aus der nsswitch.conf gelöscht habe, ging wieder alles!
Schönen Gruß
Beiträge von uhcfreak im Thema „OpenSuse Thumbleweed und sudo“
-
-
Hast Du zum bearbeiten von
/etc/sudoers auch visudo verwendet?
Zwar für Arch, aber denke gilt auch für SUSE.
Jo hab ich gemacht.
-
Hi
Codesuse.test@opensusethumbleweed:~> sudo zypper up [sudo] password for suse.test: suse.test is not in the sudoers file. This incident will be reported.
Die Gruppe sudo gibt es nicht, anstatt gibt es die Gruppe wheel die in der sudoers Datei drin steht:
Code
Alles anzeigen## Groups of users. These may consist of user names, uids, Unix groups, ## or netgroups. # User_Alias ADMINS = millert, dowdy, mikef ## ## Cmnd alias specification ## ## Groups of commands. Often used to group related commands together. # Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \ # /usr/bin/pkill, /usr/bin/top # Cmnd_Alias REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff ## ## Defaults specification ## ## Prevent environment variables from influencing programs in an ## unexpected or harmful way (CVE-2005-2959, CVE-2005-4158, CVE-2006-0151) Defaults always_set_home ## Path that will be used for every command run from sudo Defaults secure_path = "/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin:/usr/local/sbin" Defaults env_reset ## Change env_reset to !env_reset in previous line to keep all environment variables ## Following list will no longer be necessary after this change Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE" ## Comment out the preceding line and uncomment the following one if you need ## to use special input methods. This may allow users to compromise the root ## account if they are allowed to run commands without authentication. #Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE" ## Do not insult users when they enter an incorrect password. Defaults !insults ## Uncomment to use a hard-coded PATH instead of the user's to find commands # Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ## ## Uncomment to send mail if the user does not enter the correct password. # Defaults mail_badpass ## ## Uncomment to enable logging of a command's output, except for ## sudoreplay and reboot. Use sudoreplay to play back logged sessions. # Defaults log_output # Defaults!/usr/bin/sudoreplay !log_output # Defaults!REBOOT !log_output ## In the default (unconfigured) configuration, sudo asks for the root password. ## This allows use of an ordinary user account for administration of a freshly ## installed system. When configuring sudo, delete the two ## following lines: #Defaults targetpw #ALL ALL = (ALL) ALL ## ## 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 ## Read drop-in files from /etc/sudoers.d @includedir /etc/sudoers.d
Ich stehe in der Gruppe wheel drin:
-
Hallo liebe Admins,
ich nutze seit gut einer Woche OpenSUSE Thumbleweed. Jetzt wollte ich sudo einrichten, da ich nicht immer das Passwort für root eingeben möchte und muss feststellen, dass es nicht funktioniert.
Suse stellt zu diesem Thema auch extra ein Guide zur Verfügung, der so wie bei allen anderen Distros aus funktionert: Suse sudo Guide. Jedoch sagt mir mein Terminal immer noch, dass mein Account nicht in der sudoers Datei drin steht. Ich hab die Gruppe wheel für sudo berechtigt und bin auch in der Gruppe drin. Auch als ich mich direkt eingetragen habe, ging es nicht. Hat es eventuell etwas damit zu tun, dass mein username ein "." beinhaltet? Aber auch ein User ohne "." im namen war in der Gruppe wheel und hatte keine sudo Berechtigungen. Ich bekomme immer die Fehlermeldung: ... is not in the sudoers file. This incident will be reported.
Kann mir eventuell jemand einen Rat geben, wie ich sudo richtig unter OpenSuse einrichten kann bzw . wo mein Fehler liegt?
Vielen Dankuhcfreak