Add ftp user in linux, and set the corresponding permissions, the operation steps are as follows:
1. Environment: ftp is vsftp. The user name is set to test. The restricted path is /alidata/www/test
2. Create user: under root user:
useradd -d /alidata/www/test test //Add user test and make The test user's home directory is /alidata/www/test
passwd test Set the password for the test user
3. Change the user's corresponding permission settings:
usermod -s /Sbin/nologin test //Limit user test can not telnet, only ftp
usermod -s /sbin/bash test //User test returns to normal
usermod -d /test test //Change The home directory of the user test is /test
4. Restrict users from accessing /home/test and cannot access other paths
Modify /etc/vsftpd/vsftpd.conf as follows:
chroot_list_enable=YES //Restrict access to its own directory
# (default follows)
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
Edit vsftpd.chroot_list file , add restricted users, one line per user name
Change the configuration file, don't forget to restart the vsFTPd server
[root@localhost]# /etc/init.d/vsftpd Restart
5. If you need to allow the user to change the password, but Have telnet login system permissions:
usermod -s /usr/bin/passwd test //Users will go directly to the modified interface after telnet
6. If you want to delete the user, use the following code :
userdel test //userdel + Users can delete ftp users
I will talk about how to use the command in Linux to test the read and write input of the hard disk
Record your favorite Linux system commands for easy reference later, and find that memory is getting
Use the ps and grep commands to find the zombie process #ps -A -ostat,ppid,pid,cmd | Grep -e ^[Zz]
Too many open files Errors are common faults in Linux systems. Solutions can be easily found on the
The slow mail problem of sendmail under Linux host
Glusterfs cluster distributed file system off the brick processing
The correct way to restore EXT3 Superblock under Linux
IDE data transfer mode (PIO, DMA)
How to use a virtual drive under Linux
How to install the graphics card driver under Linux Step
Linux FTP server build tutorial
Linux Chinese dialog box garbled solution under Linux
Detailed linux and win partition format
Centos 6 error after closing ipv6: Module off not found Solution
How does Win7 remove network locations from unused network locations
Using Batch Processing to Implement WinRAR for Multiple Compression and Decompression
How does WinXP delete the recycle bin icon? WinXP system deletes the recycle bin icon
How to uninstall Media Player on Win7 system
How to experience Win10 system?
What can I do if I can't find the WordPad in the Win7 accessory?
Win7 system iDRAC login prompt "Login Error (credential failed) password wrong" solution