Cannot sudo anymore - macOS Catalina I have a problem. I have 2 users user (normal user) and admin (admin user). I normally work on user user and when I wanted to update some files  (as for example /etc/hosts) I did:

$ su admin
Password: 
$ sudo nano /etc/hosts
Password: 


However from some time (probably from update to MacOS Catalina). It's not working anymore.

I can switch to admin user (1st command) however when I try to run 2nd command I'm getting message "sorry" although I'm 100% sure I type valid password (I copied this password to text editor and pasted this password to 1st command and it's working fine but it doesn't work for 2nd command).
It seems the solution was after running 1st command to run:

sudo -s


Somehow it fixed situation and now again both commands are working without any problem as they did before. Hard to say what was the reason for this (maybe introducting zsh) but now I can again edit files I need