LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp connection to the same server (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-connection-to-the-same-server-4175421508/)

mathews567 08-10-2012 10:46 PM

ftp connection to the same server
 
Hi,

I would like to some details for the following basic questions


1) Once I login to a server, how may level/time I can use su(switch user) login in the same server. Does the su user(new user) has any dependency with the parent user.


2) After login to a server, can a open a sftp connection to the same server, does it have any connection issues/limitations for ports etc. and can I copy/move files using the new sftp connection. Would like to have details about this.


Thanks in advance.

mathews567 08-11-2012 07:28 AM

Any comments on the sftp connection to the same server be will be very helpful.

chrism01 08-12-2012 04:51 PM

1. no limit on switching users (probably a hteoretical one, but not one you need worry about)
Why would ypu want to do it anyway?
BTW
Code:

# this logs in as new user but with your original env
su <user>


# this also gives you new user's env
su - <user>

2. you could sftp to yourself, but again, why bother??

mathews567 08-12-2012 10:24 PM

Thank you Chris.


All times are GMT -5. The time now is 11:06 PM.