Ubuntu ftp setting

Linux/Ubuntu 2013. 4. 13. 15:48 Posted by 생각하는로뎅
반응형

vsftpd - FTP Server Installation

vsftpd is an FTP daemon available in Ubuntu. It is easy to install, set up, and maintain. To install vsftpd you can run the following 


command:

sudo apt-get install vsftpd


Anonymous FTP Configuration

By default vsftpd is configured to only allow anonymous download. During installation a ftp user is created with a home directory of /home/ftp. This is the default FTP directory.


If you wish to change this location, to /srv/ftp for example, simply create a directory in another location and change the ftp user's home 


directory:

sudo mkdir /srv/ftp

sudo usermod -d /srv/ftp ftp 


After making the change restart vsftpd:

sudo /etc/init.d/vsftpd restart


Finally, copy any files and directories you would like to make available through anonymous FTP to /srv/ftp.


User Authenticated FTP Configuration

To configure vsftpd to authenticate system users and allow them to upload files edit /etc/vsftpd.conf:


local_enable=YES

write_enable=YES


Now restart vsftpd:

sudo /etc/init.d/vsftpd restart


Now when system users login to FTP they will start in their home directories where they can download, upload, create directories, etc.

Similarly, by default, the anonymous users are not allowed to upload files to FTP server. To change this setting, you should uncomment the following line, and restart vsftpd:


anon_upload_enable=YES

반응형

'Linux > Ubuntu' 카테고리의 다른 글

Ubuntu 설치 후, windows xp 멀티 부팅  (0) 2013.06.26
Ubuntu mounting a hard disk  (0) 2013.04.16
Ubuntu firewall setting  (0) 2013.04.13
Ubuntu telnet  (0) 2013.04.13
Ubuntu add scripts to svn  (0) 2013.04.13