Restrict user to folder (not root) on VSFTPD in Ubuntu
        Posted  
        
            by 
                omega1
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by omega1
        
        
        
        Published on 2013-05-09T07:27:46Z
        Indexed on 
            2013/11/05
            22:13 UTC
        
        
        Read the original article
        Hit count: 244
        
permissions
|ftp
I am a new Linux (Ubuntu) user and have a VPS where I am setting up a backup FTP service. I have followed this guide, which I have managed to do correctly and it works.
I have two users (user1 and user2) with the same directory /home/users/test. user1 can read/write and user2 can only read. This works OK.
When the users log in, they go straight into the correct directory /home/users/test, but they can navigate back down to the home directory, which I do not want to happen.
I cannot seem to find out how to not allow this, and have them not be able to navigate back to the /home/ or /home/test/ directories.
© Ask Ubuntu or respective owner