Linux File Server Combat Details (System user)

  • 2020-10-23 20:23:54
  • OfStack

After ftp anonymous user setup is complete, anyone can access server-side files, directories, and even modify or delete files and directories. How to store private files and ensure that files or directories are exclusive to their owners?

1. Create multiple users (useradd) in linux system and set the password for users


 [root@www ~]# useradd xj1
  [root@www ~]# useradd xj2
  [root@www ~]# echo 123456|passwd --stdin xj1
  [root@www ~]# echo 123456|passwd --stdin xj2

2. Modify vsftpd configuration


anonymous_enable=NO
  local_enable=YES
  write_enable=YES
  local_umask=022
  dirmessage_enable=YES
  xferlog_enable=YES
  connect_from_port_20=YES
  xferlog_std_format=YES
  listen=YES
  listen_ipv6=NO
  pam_service_name=vsftpd
  userlist_enable=YES
  tcp_wrappers=YES

conclusion

The above is the site to you to introduce Linux file server combat details (system users), I hope to help you, if you have any questions welcome to leave a message, this site will reply you in time!


Related articles: