How to Allow FTP Users to Access to Out of Home Directory (chroot) Files and Folders如何讓FTP用戶訪問到走出主目錄( chroot來)的文件和文件夾
FTP server service on a host that comes with advanced web hosting package such as VPS (Virtual Private Server), VDS (Virtual Dedicated Server), hybrid server, or dedicated server, regardless of whether it’s powered by proftpd, vsftpd, or pure-ftpd, etc., usually been set up and configured by default to restrict and jail the FTP users to have only limited access to files and folders located within their own home directory. FTP伺服器服務對主機附帶的先進的虛擬主機方案,如電子道路收費(虛擬專用服務器) ,推出自願離職計劃(虛擬專用服務器) ,混合服務器,或專用服務器,不論它的動力由proftpd , vsftpd ,或純- ftpd等,通常已成立並配置默認情況下,限制和坐牢的FTP用戶只有有限的訪問文件和文件夾設在自己的主目錄。 The restriction is set by chroot directive where FTP users are locked within chrooted folder, normally their home folder.限制是所定的指令情況下的chroot FTP用戶被鎖定在chrooted的文件夾,通常是他們的主文件夾。
If FTP users need to access or change to another folders out of chrooted home directory, they have to be allowed to access other directories and files by disabling chroot control.如果FTP用戶需要訪問或改變到另一個文件夾出chrooted主目錄,他們被允許訪問其他目錄和文件通過禁用的chroot控制。 Disable chroot will allow FTP users to break out the chroot to go to directory in different location.禁用的chroot將允許FTP用戶擺脫的chroot到目錄在不同的位置。
To disable chroot cage for FTP users in their home directories, locate the chroot configuration in FTP server configuration file and set the value to “NO”.要禁用的chroot籠FTP用戶在他們的home目錄中,找到的chroot配置在FTP服務器配置文件和值設置為“ no ” 。 Some directive name and configuration file name with its location for common FTP server software is listed below.一些指令的名稱和配置文件的名稱與它的位置為共同的FTP服務器軟件是列在了下面。
Pure-FTPd : /etc/pure-ftpd.conf 純ftpd :在/ etc /純ftpd.conf
ChrootEveryone=NO chrooteveryone =無
ProFTPd : /etc/proftpd.conf proftpd :在/ etc / proftpd.conf
DefaultRoot ~ (delete this line) defaultroot 〜 (刪除此行)
VSFTPd : /etc/vsftpd.conf vsftpd :在/ etc / vsftpd.conf
chroot_local_user=NO chroot_local_user =無
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article原來的英語文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 . 。
Related Articles相關文章
- Upload (mput) and Download (mget) Multiple Files Automatically in FTP Transfer上傳( mput )和下載( mget )多個文件自動在FTP傳輸
- Add Take Ownership Option To Files and Folders Context Menu in Vista新增的所有權,選擇文件和文件夾的上下文菜單在Vista
- Download RED (Remove Empty Directories) for Windows PC下載紅(刪除空目錄)的Windows PC
- How to Change Windows Explorer Default Folder如何改變Windows檔案總管的默認文件夾
- Unable to Delete Photo Folders無法刪除圖片文件夾
- Show,List Out and Identify All Shared Files and Folders in Windows Vista顯示,列出,並確定所有共享文件和文件夾在Windows Vista
- Easier Way to Take Ownership and Grant Access Files or Directories in Vista更簡單的方式,採取所有權和授予存取文件或目錄在Vista
- Vista IE7 Cache & Cookies Folder, Temp Directory and History Location Vista中的IE7緩存及Cookies文件夾, TEMP目錄和歷史位置
- Exclude Files from Shadow Copies (Previous Versions and System Restore)排除特定文件的卷影副本(以前的版本和系統還原)
- Easy Solution to Unable to Find Downloaded or Created Compatibility Files in Windows Vista容易的解決辦法無法找到下載,或創造的相容性文件在Windows Vista

































January 20th, 2008 00:42 2008年1月20日0時42分
You know that you can, mount –bind a directory so users are chroot for security but still allow them to access some more directorys outside their chroot.您知道,您可以掛載-綁定一個目錄,使用戶的chroot安全,但仍讓他們進入一些較為directorys以外的chroot 。
Heres the link to it. heres鏈接。
January 20th, 2008 00:43 2008年1月20日0時43分
http://www.vinno.net/linux/server/chroot-mount-trick
Ops didnt work.老年退休金計劃didn't工作。 Here it is again:這裡又是: http://www.vinno.net/linux/server/chroot-mount-trick
April 7th, 2008 18:37 2008年4月7日18時37分
Hi i tried that chroot_local_user=NO喜我試圖說, chroot_local_user =無
im using vsftpd on ubuntu 7.10 desktop.即時通訊使用vsftpd對Ubuntu的7.10的桌面上。 I changed the conf file like before then restarted the server and from another desktop logged in as a localuser.我改變了配置文件像以前一樣,然後重新啟動服務器和從另一個桌面記錄在作為一個localuser 。 when i typed ls -l it still only shows that users home directory..Please help im so new to linux當我輸入ls - l的,它仍然只顯示用戶的主目錄..請幫助,使新的即時通訊到Linux