FTP user
1 Attachment(s)
Hi all,
My user can get to the relevant files in SSH but in FTP he starts with .bashrc etc (attached) and I can't start seem to move out of this directory in filezilla. Can I change the directory in which the user begins an FTP session - or any other suggestions please? Thank you |
Hi,
When you connect in to the FTP in the port option use port 22 which usually takes you into the /home directory. Hope this helps Steve |
1 Attachment(s)
Quote:
Thanks |
ssh (port 22) and ftp (ports 20,21) are separate tools.
If you want to get into your home dir and copy files, use scp or sftp; both are part of the ssh tool. A good GUI client tool (free) is Filezilla which can do regular ftp or sftp. It can get more complex for ftp http://slacksite.com/other/ftp.html |
Quote:
Thanks |
I thinks what chrism01 is meaning is in your hostname, rather than using ftp.domainname.com use sftp.domainname.com instead. This is another method to give a try that i've seen work successfully in some occasions.
|
Using Filezilla, I've always just (separately) supplied user, passwd, host (or IP) and then specified port 22 in the portnum input box.
It will then use sftp and connect to port 22. You don't need an sftp.domainname.com entry in your DNS. |
I can not provide the answer how to change the directory. But your user is jailed to his/her home directory. In general, you don't want ftp users to snoop around anywhere else in the system.
Can you provide some kind of context as to the why you want the ftp user to get outside his/her home directory? Is it a webserver? Or a dedicated system with one user only? |
1 Attachment(s)
Quote:
|
Quote:
Thanks |
Glad it worked for you, if your issue is resolved then could you mark it as solved on the thread tools so other users might benefit from this solution.
Cheers Steve |
Glad it worked. As I say, you can just put port 22 on the main screen and it assumes sftp (& vice versa as you've discovered :) )
|
Quote:
Thanks... |
Multiple roads lead to Rome, I guess. I'm just too lazy to figure all of them out and the one that works for me is to have the websites somewhere in the home-directories of the users. It requires a slight modification of the webserver's configuration to change the document roots.
That way, the jail works as intended. |
All times are GMT -5. The time now is 10:37 AM. |