sudo to userb when i log in as usera
At my work, i am only sudo to userb. As I had to do it multiple times in a day , I wanted to automatically sudu to userb by placing in my .profile
sudo su - userb ; cd ~/somedirectory
However, this is not working. I tried placing sudo to .bashrc but that did not work either.
could someone please point out what am i doing wrong?
Thanks
|