0

I build my webapp on a local machine, but from time to time I can go to a public Linux server on which I have two accounts using a ssh connection (with putty). My accounts are two Linux users, access to my public webapp is at the address: 'http://linux_srver_ip/~user_name'.

Using putty, when I'm logged as user_one, how can I switch to user_two account?

benRollag
  • 141
  • 5
dole doug
  • 275
  • 1
  • 5
  • 11

1 Answers1

1

su <username>

http://linux.die.net/man/1/su

Steve-o
  • 839
  • 6
  • 12
  • 1
    I prefer "su - username". The "-" causes "su" to invoke the login shell process, which may be important if the other user should be accessed with a different environment from the first user's. – cjc Aug 29 '11 at 11:03