adduser –M 750In Ubuntu Linux, to issue the same license, we must edit the DIR_MODE line in the /etc/adduser.conf file, then this line will be changed to:
DIR_MODE = 0750The /etc/adduser.conf file can be used to configure the home directory's default license for user accounts via administrative tools on FreeBSD systems as well as Ubuntu Linux systems, however The –M option of the adduser command will allow the default license in /etc/adduser.conf to be overwritten when running the adduser command.
: umask = 022:Because this is a mask that blocks a set of device licenses, we need to consider them as licenses that are excluded from the default licenses that a file might have. For example, when a process with umask tries to create a file with a 775 license, it will complete with the 755 license group because the license has a value of 2 (Write - write license) has been blocked with the Group object. as a default file access license. Since files outside the directory are usually not executable files, however, licenses 1 (Execute) are always ignored by creating an installation umask 022 to assign licenses 644 to files outside the directory when created, while files in the directory will be created with the license group 755 .
: umask = 027:Meanwhile, on Ubuntu Linux systems, the default value of umask in etc / profile will be:
umask 022To automate file creation licenses to prevent them from exceeding 750 we need to change this line to:
umask 027Also users can install a different value for the file license. For example, if a user creates a file, then wants to grant 777 license, then the chmod command can be used with the following syntax:
chmod 777 [name_file]The default umask configuration of this utility will not prevent users from making changes to the license, but it only sets default values for specific license groups when the file is created.