New on LowEndTalk? Please Register and read our Community Rules.
Lock FTP account inside directory only?
Hello,
I have a Kinsufi server and I want to create a new FTP and lock it in one directory only. So I don't want the user to see the other files in the server.
I tried google and I created an FTP account while ago but I couldn't manage to lock it. Anyway, I want to start from zero this time by creating a new FTP account.
This community has been a great help for me to manage a server..So Please how can I:
- Create FTP account?
- Lock it inside a directory only?
Thanks a lot for all your help in advance!
Comments
http://www.cyberciti.biz/tips/vsftp-chroot-users-limit-to-only-their-home-directory.html
chroot
[edit]
Damn you @superpilesos
There's a great service known as Google
Yeah, and the great thing about Google is that his query
"Lock FTP account inside directory only"
will now return this thread as first result, for other people who'd phrase it in a similar way
glftpd can do this very easily too.
This tells you how to do it specifically for vsftpd.
Which is a dog's breakfast if you don't know exactly what you're looking for....
Ah! There's a useful keyword...
But with different syntax than vsftpd.
So maybe (a) read the docs for your ftp server, or (b) google for "[name of ftp server] chroot user".
Or (c) install vsftpd and follow the tutorial
Which complicates matters even more if he already has an FTP server running....
ForceCommand internal-sftp and ChrootDirectory
you don't need ftp, if you use sshd your sftp server is already capable of doing all you need.
Guys, thanks a lot but I am confused now :P
I use root for my server OK? I can see all the directories and I want to keep doing that.
I created an FTP account for another user and I tried the vsftpd link above and I logged in as if I am the user and I could see all the directories.
I don't know what I have done wrong
what i do is i create a new user and set their home directory as the desired location and i use vsftpd and chroot it. Granted I create the user in webmin and since my ftp program is already set up its just a matter of creating the user and not worying as it is automatic.
Hold me until tonight and I'm gonna put a tutorial
Thanks a lot
Please can you do it from A to Z if you don't mind
?
useradd -d /var/www/ftp_test/ dir -s /bin/false/ ftp_test passwd ftp_test mkdir /var/www/ftp_test/ chmod 775 /var/www/ftp_test/ chown -R ftp_test /var/www/ftp_test/
Thats it, no way to see other dictionaries?