{"id":501,"date":"2010-10-21T00:10:39","date_gmt":"2010-10-21T00:10:39","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2010\/10\/21\/vsftpd-550-failed-to-change-directory\/"},"modified":"2021-07-24T18:38:30","modified_gmt":"2021-07-24T18:38:30","slug":"vsftpd-550-failed-to-change-directory","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/UNIX\/Linux\/vsftpd-550-failed-to-change-directory.html","title":{"rendered":"VSFTPD : 550 Failed to change directory"},"content":{"rendered":"
By default VSFTPD does not allow the browsing of symbolic links. When you try to browse sym links you will get a message saying,<\/p>\n
550 Failed to change directory<\/strong><\/em><\/span><\/p>\n In order to overcome this you can use the mount command. Here are the steps :<\/p>\n As you can see from this example, we create a link in the ftpusers home directory to link through to the \/var\/log\/ directory. Once done we change the group on the directory to ensure there are no permission issues.<\/p>\n Additional Notes <\/strong><\/p>\n You will also want to make your binded mount permanent<\/strong>. To do this add the following line to \/etc\/fstab.<\/p>\n If you want to remove the binded mount<\/strong>, umount the path and then remove the directory.<\/p>\n By default VSFTPD does not allow the browsing of symbolic links. When you try to browse sym links you will get a message saying, 550 Failed to change directory In order to overcome this you can use the mount command. Here are the steps : [root@server ftpuser]# pwd\/home\/ftpuser[root@server ftpuser]# mkdir NEW_DIR[root@server ftpuser]# mount –bind … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"yoast_head":"\n[root@server ftpuser]# pwd
\/home\/ftpuser
[root@server ftpuser]# mkdir NEW_DIR
[root@server ftpuser]# mount --bind \/var\/log\/ NEW_DIR
[root@server ftpuser]# ls -l
total 184196
drwxr-xr-x 4 root root 4096 Oct 12 14:33 NEW_DIR
[root@server ftpuser]# chgrp ftpuser NEW_DIR
[root@server ftpuser]# ls -l
total 184196
drwxr-xr-x 4 root ftpuser 4096 Oct 12 14:33 NEW_DIR<\/pre>\n\/my\/real\/dir \/to\/mount\/dir none bind 0 0<\/pre>\n
[root@server ftpuser]# ls -l
total 8
drwxr-xr-x 2 root root 4096 Oct 21 00:41 VirtualMachines
[root@Fileserver ftpuser]# umount VirtualMachines\/
[root@Fileserver ftpuser]# rm -ivr VirtualMachines\/
rm: remove directory `VirtualMachines\/'? y
removed directory: `VirtualMachines\/'<\/pre>\n","protected":false},"excerpt":{"rendered":"