To remove the user ftp from your password file, use the following command:
[root@deep ] /# userdel ftp
|
To verify that the
RPM package of anonymous
FTP program is not installed on your Linux system, use the following command:
[root@deep ] /# rpm -q anonftp
|
package anonftp is not installed
|
Edit the ftpaccess file, vi /etc/ftpaccess and add the following lines to deny upload privileges into these areas.
# We don't want users being able to upload into these areas.
upload /home/ftp/* / no
upload /home/ftp/* /etc no
upload /home/ftp/* /dev no
upload /home/ftp/* /bin no
upload /home/ftp/* /lib no
|
-
Require only if you are not using the --enable-ls option.
-
Require only if you are not using the --enable-ls option.
The above lines specify to deny upload into the
/,
/etc,
/dev,
/bin and
/lib
directories of the chroot'd
/home/ftp directory structure.