All sudo command give me an "file name is too long" error

So when I type sudo ls or sudo whatever, I get this. I use fish shell, but when I change to another I am getting the same. This is new behavior, since a few days ago. su works, but this does not help me with AUR updates, for example.
I was also unable to start an appimage, giving Fatal Python error: calculate_program_full_path: path configuration: path too long, might be related.

Note, my locale is German, so actually I am getting “Der Dateiname ist zu lang”, so my error message is a translation, it might be different on an English system.

Did you always have this issue? Right when installing Manjaro the first time? If not, do you remember what you last did that might have caused the issue?

I think this is due either from

  • a limit from the filesystem you use
  • a limit from Python (that i don’t know of)

You could also check the associated AUR package’s page for relevant comments.

Since the day before yesterday maybe. The system had been fine and I did not upgrade any major packages, just a couple of apps like zoom. I also did not touch any system configuration files recently.

Sudo uses python?
File system is ext4.
I cannot imagine this to be the cause.


Are you sure, you’re executing the /usr/bin/sudo binary from sudo package?
Please post the output of

$ which sudo || type sudo
$ pacman -Qkk sudo

If I create another user and log in with this account, even if he is not in the sudoers group, it will also yield the same error.

I am thinking about trying to reinstall sudo, but I am unsure if this is dangerous, possible at all and doubt, this will solve anything.
I also already rebooted enabling the fsck hook in mkinitcpio,

  • /usr/bin/sudo
  • backup file: sudo: /etc/sudoers (Modification time mismatch) backup file: sudo: /etc/sudoers (Size mismatch) sudo: 222 total files, 0 altered files

sudo package seems to check out, /etc/sudoers was changed.

It’s not dangerous, very possible and will solve your problem if (and only if) the problem lies within that changed /etc/sudoers file.

At the moment sudo isn’t working for you - so you have to login as root either on tty or via

$ su - root