#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2008
    Posts
    209
    Rep Power
    9

    File base permissions are 666, why and is this a configurable value?


    It is specified in various documentation on the net that linux/unix file base permissions are 666 with regards to how umask manipulates.

    This is also relevant with regards to the fact that default ACL permissions enforce a rw mask for files created under a default ACL persmission.

    1. Can the file base persmissions of 666 be changed?
    2. Is the behavior with regards to the mask generated for files created under a default ACL that appears to mimic said file base permissions of 666 (deactivating write) in fact a function of the said file base permissions?
    3. If #1 is a configurable options, where is said configuration? Perhaps it is a configuration of certain file systems.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    58
    Rep Power
    2
    What documentation are you referring to? I've been using Linux for almost ten years, and I've never heard of this.

    If it's a Linux filesystem you're mounting, you can change the permissions to whatever you want with a chmod command.

    If it's an NTFS or FAT32 filesystem you're mounting, the umask dictates the permissions, and they are definitely not 666 regardless of how you set the umask.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2008
    Posts
    209
    Rep Power
    9
    File base permissions are the permissions from which the umask is subtracted from . They are 777 for directories and 666 for files.

IMN logo majestic logo threadwatch logo seochat tools logo