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
-
-
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
-
Hallo liebe Community,
kann mir von euch jemand helfen und mir sagen, wie ihr euch auf LPIC-1 vorbereitet habt? Eventuell kann mir jemand ein paar Tipps geben
Viele Grüße
uhcfreak -
Hallo Zusammen,
vielen Dank für die ganzen Antworten. Ich werde mich für Kubuntu entscheiden.
Viele Grüße
uhcfreak -
Hallo zusammen,
das ist mein erster Eintrag, sollte also Etwas falsch sein, bitte sagt mir es.
Ich habe eine kleine Frage zur Wahl meiner Distribution. Am 01.07. werde ich einen neuen Job antreten und darf mich zwischen SUSE und Kubuntu entscheiden. Ich habe beides ausgetestet und da ich mich noch nicht all zu lang mit Linux auseinandersetze, möchte ich hier mal Fragen, zu was Ihr mir raten würdet?
Bei openSUSE (was hoffentlich ziemlich ähnlich zu SUSE ist) ist mir nur aufgefallen, dass man nicht so viele Paktete, wie bei Kubuntu in den Standard-Repos hat, aber ansonsten ist mir als Anfänger kein großer Unterschied aufgefallen. Könnt Ihr mich bitte etwas aufklären?
Vielen Dank und viele Grüße
uhcfreak