Hello!
My terminal kept getting this error: "dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/login) is setuid or setgid"
So I tried finding solution online and I found people with the same error and they solved it by this:
sudo sh
<password entered; results in superuser prompt - #>
mv /usr/bin/sudo /usr/bin/sudo-real
cat > /usr/bin/sudo
#!/bin/sh
SUDO=/usr/bin/sudo-real
exec $SUDO $* 2>> /dev/null #Normal users can't write to /var/log/sudu-wrapper-output
^C
sh-3.2# chmod +x /usr/bin/sudo
https://discussions.apple.com/thread/4143805?start=45&tstart=0
I am a noob and I don't understand what any of these commands mean.
Now when I type sudo in terminal, I kept getting "-bash: /usr/bin/sudo: Permission denied". And the error I got before about DYLD is still there. Please help me. How do I fix this? D:At least how to get the sudo permission back.
My terminal kept getting this error: "dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/login) is setuid or setgid"
So I tried finding solution online and I found people with the same error and they solved it by this:
sudo sh
<password entered; results in superuser prompt - #>
mv /usr/bin/sudo /usr/bin/sudo-real
cat > /usr/bin/sudo
#!/bin/sh
SUDO=/usr/bin/sudo-real
exec $SUDO $* 2>> /dev/null #Normal users can't write to /var/log/sudu-wrapper-output
^C
sh-3.2# chmod +x /usr/bin/sudo
https://discussions.apple.com/thread/4143805?start=45&tstart=0
I am a noob and I don't understand what any of these commands mean.
Now when I type sudo in terminal, I kept getting "-bash: /usr/bin/sudo: Permission denied". And the error I got before about DYLD is still there. Please help me. How do I fix this? D:At least how to get the sudo permission back.