To remove the FTP service and delete the "fanzha2121" user from the openEuler 22.03-LTS system, you can follow these steps:\n\n1. Open a terminal or connect to the openEuler system via SSH.\n\n2. Stop the FTP service. Use the following command to stop the FTP service:\n \nsudo systemctl stop vsftpd\n \n\n3. Disable the FTP service from starting automatically at boot time. Use the following command to disable the FTP service:\n \nsudo systemctl disable vsftpd\n \n\n4. Remove the FTP service package. Use the following command to remove the vsftpd package:\n \nsudo dnf remove vsftpd\n \n\n5. Delete the "fanzha2121" user. Use the following command to delete the user:\n \nsudo userdel fanzha2121\n \n\n6. Optionally, you can also delete the user's home directory using the following command:\n \nsudo rm -r /home/fanzha2121\n \n\n7. Verify that the FTP service is removed and the user is deleted by checking their status:\n - To check the FTP service status, use the following command:\n \nsudo systemctl status vsftpd\n \n If the service is not found or inactive, it means it has been successfully removed.\n\n - To check the user status, use the following command:\n \nid fanzha2121\n \n If the user is not found, it means it has been successfully deleted.\n\nThat's it! The FTP service has been removed, and the "fanzha2121" user has been deleted from the openEuler 22.03-LTS system.


原文地址: https://www.cveoy.top/t/topic/px0A 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录