Some time ago, I started a lab server. After I installed Windows Server, I was unable to activate it for a long time. I simply installed Ubuntu and I also learned how to use it. The lab does not have high requirements on servers, As long as printers, FTP, and SVN can be used. I am basically a layman in the Ubuntu system. I don't know much about many things, but I have to explore it slowly. After a few days, I finally got these things done, though not perfect, but it can be used. Now I have forgotten something. Ubuntu version:
Some time ago, I started a lab Server. After installing Windows Server 2008, I was unable to activate it for a long time. I simply installed Ubuntu and learned it by the way. The lab does not have high requirements on servers, As long as printers, FTP, and SVN can be used. I am basically a layman in the Ubuntu system. I don't know much about many things, but I have to explore it slowly. After a few days, I finally got these things done, though not perfect, but it can be used. Now I have forgotten something.
Ubuntu: 11.04 Desktop
1. Install vsftpd
Sudo apt-get install vsftpd
In this case, the system automatically creates an ftp user and an ftp group, and creates a/srv/ftp folder as the HOME Directory of the ftp user. (If you want to put the FTP directory in/home/ftp, you can modify the ftp user's HOME directory location in the/etc/passwd file .)
2. Configure vsftpd
Open the/etc/vsftpd. conf file, change anonymous_enable = NO to anonymous_enable = YES, and allow anonymous access.
3. Now you can access FTP. Test it first:
1) create a new file a.txt under the/srv/ftpdirectory, and then sudo chown root: ftp a.txt
2) ftp localhost
If the logon fails, [Linux community www.Linuxidc.com] (solution: Add the following sentence to/etc/shells:/bin/false
Now you can log on normally.
4. If you need to set the FTP access permission, you can modify the/etc/vsftpd. conf file. The following statements are commonly used:
Write_enable = YES # Allow upload
Anon_upload_enable = YES # Allow Anonymous uploads
Anon_mkdir_write_enable = YES # Allow anonymous users to create folders
For more operations, see the comments in this file. The comments are clearly written.