Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a CENTOS Linux server. I realized that any given file, even belonging to the root user (ownership), can be deleted by any other user accessing through FTP ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    1

    Unhappy How to protect files for being deleted through FTP?


    Hi,

    I have a CENTOS Linux server. I realized that any given file, even belonging to the root user (ownership), can be deleted by any other user accessing through FTP client program (any, for instance, FileZilla).

    My questions:

    1) Is it an error, a flaw, or it is right?

    2) If so, how to protect that file?

    Thanks.

    Mario./

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Hi and welcome to the forum.

    What ftp server are you running? If thats happening then it could be that there is a configuration error or there is a problem with your file permissions because its not normal for any user to be able to delete files that don't belong to them. Have you considered using a chroot jail for your users? This will confine them to their home directory so they can't see or access files in the rest of the system.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •