The problem: I set my umask for my user to be 0077. Now I use sudo instead of su when I need super-user access, and the problem is that whenever I execute a software installation using sudo with something like sudo pip3 install sympy, all the software installed by that gets the permission masked by 0077, meaning all these libs are not reachable by any user!!
The question: How can get all sudo calls to have the mask 0022 while my user calls have a mask of 0022?
Note: I did add the line Defaults umask = 0022 in sudo visudo and still didn't work. Is this everything to be done?
How do I set my umask: I have the line umask 0077 added to ~/.bashrc and ~/.profile.