I'm having a communication problem with my IT department, and as a newb with terminal, this is really frustrating because I can't understand why I'm doing the things I'm instructed to do. All they're telling me is that I have to do it.
I have a server that I ssh into as anyone would:
ssh myname@thehost and I enter my password.
This is where I get confused: IT told me that now I have to run this command:
sudo -iu otherusername.
While I have looked up what those options
-iu are (so I know that it's a "simulated initial login" -- whatever that means -- as this
otherusername), but I don't actually understand what they mean or why I have to do this. So, my first question is, why do you think I have to do this? Why would one run such a command?
My next question is, how do I upload files to this server given that I have to log in as a different user after the initial login? I haven't tried, but can I simply
scp thefile myname@thehost:theDirectory? How do I know which files are shared?
Sorry if these questions are especially newb. Gotta start somewhere, right? ;-)