Originally Posted by wjs1990
But, i don't really know what the code is actually doing. Can anyone care to explain this to me? Thanks.
First, try to use [ code ] [ /code ] (sans spaces) tags around code, it makes it a lot easier to read.
The short answer is:
Tests to see if /etc/ftpaccess exists, if so it loops through the password file entries and tests each if its a system account (ie: under 500), if so it adds them to the ftpusers file. Modifies the owner and permissions, does a diff to screen, and verifies that userlist_deny isn't set and copies the ftpusers file to the vsftpd specific file and fixes owner and permissions on that it then shows the differences between the vsftpd specific files and and the precis versions.