Yesterday, I installed MacPorts. However, due to a copy/paste error I seem to have installed the MacPort sudo.
So, for a while when I used sudo in a terminal I got this error:
However, it didn't really fix the problem as now when I use sudo in a terminal I get
I can, of course, still get sudo to work in a terminal just by typing "/usr/bin/sudo" rather than just "sudo".
Nevertheless, I want to get back to just using sudo.
Can anybody please help?
So, for a while when I used sudo in a terminal I got this error:
So, I unstalled MacPorts and re-installed it again without installing the MacPort sudo.sudo: can't stat /opt/local/etc/sudoers: No such file or directory
However, it didn't really fix the problem as now when I use sudo in a terminal I get
This looks like my Paths are messed up but apparently the desired path (/usr/bin) is still there:-bash: /opt/local/bin/sudo: No such file or directory
Code:
$ $PATH
-bash: /opt/qt4/bin:/opt/kde4/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: No such file or directory
Nevertheless, I want to get back to just using sudo.
Can anybody please help?