-1

When I run sudo su or any other command with sudo this is the output

sudo: /etc/sudo.conf is world writable sudo: /etc/sudo.conf is world writable sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: error initializing audit plugin sudoers_audit

When I try to fix using policykit,it gives me this output:

Error checking for authorization org.freedesktop.policykit.exec: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying

When I try systemctl status policykit, I get this:

log

Ajay
  • 1,246
  • More or less yes, but i can't even run pkexec chmod 0755 /etc/sudoers.d the output i have already mentioned – ERKO 901 Mar 18 '24 at 06:39
  • No and is here any other way how to run terminal as root without sudo command – ERKO 901 Mar 18 '24 at 06:44
  • Or i tried su - but i didn't set any password for that so i tried su passwd root and this is the output erko@Carrot

    :~$ su passwd root

    su: user passwd does not exist or the user entry does not contain

    all the required fields

    erko@Carrot:~$

    – ERKO 901 Mar 18 '24 at 06:54
  • 1
    Have you tried using the recovery mode as suggested by one of the answers to the duplicate? If none work, boot live media & make the change from there is what I'd likely do, but you've provided no Ubuntu product/release details so we can only be generic in advice. – guiverc Mar 18 '24 at 06:55
  • I would like to know if i can run terminal as root somehow without using sudo su – ERKO 901 Mar 19 '24 at 05:40
  • The easiest way on a Ubuntu system is just use the appropriate recovery option; which is just a menu driven way of telling the system to boot into specific modes (which is what you'd use if not using Ubuntu). As the root user is disabled by default on Ubuntu systems (using sudo closing one security weakness) direct logins cannot be used; but if enabled you can login as root just like any other system. Others methods (pkexec etc) can depend on product/release details you've not provided. – guiverc Mar 19 '24 at 05:58
  • Amd how can i do that. And will I still have my files? – ERKO 901 Mar 19 '24 at 06:13
  • I don't understand what I mentioned relates in any way to your files (I was talking about alternate booting alternatives) ... but again you've not said what Ubuntu product, nor what release of that unstated product thus I'm limited (as per prior comments) to providing generic advice. (eg. I'm a Desktop user, thus I expect I can re-install and not lose any of my files, my setups etc. but I'm not even talking about re-install here, but alternate boot methods of your existing system) – guiverc Mar 19 '24 at 07:06
  • I tried to get to grub menu but nothing happened i switch on the computer and pressed shift and hold shift and it normally start the ubuntu – ERKO 901 Mar 23 '24 at 10:29
  • Is it right or left shift? – ERKO 901 Mar 23 '24 at 10:30
  • I dont know how to get to grub menu. I have asus mother board – ERKO 901 Mar 23 '24 at 10:52

0 Answers0