umask 007

Discussion in 'Installation/Configuration' started by Shella, May 14, 2008.

  1. Shella

    Shella New Member

    Hi all, i tried to follow instruction to make an hardening on CentOs 5.1 with Bastille.
    In the tutorial is suggested to set the umask as 007. Can please somebody explain me the advantages setting this umask in this way please?
    If i understood it's work so:

    if a file have permission like 0777, with the umask 007 i have back a permission like 770.... right?

    If so... why it's suggested to set umask in this way?
    Thanks a lot.
  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, when you upload a file via FTP, it will have 770 permissions. The umask has no effect on existing files.

    770 means that the owner and the group have all permissions for that file, but everyone else has no permissions at all (not even read permissions) - it's a security measure.

Share This Page