protected function chmodSettings()
    {
        try {
            $this->fs->chmod($this->appRoot . '/sites/' . $this->directory . '/settings.php', 0640);
        } catch (IOExceptionInterface $e) {
            $this->getIo()->error(
                sprintf(
                    $this->trans('commands.multisite.new.errors.chmod-fail'),
                    $this->appRoot . '/sites/' . $this->directory . '/settings.php'
                )
            );

            return 1;
        }
    }
protected function chmodSettings()
    {
        try {
            $this->fs->chmod($this->appRoot . '/sites/' . $this->directory . '/settings.php', 0640);
        } catch (IOExceptionInterface $e) {
            $this->getIo()->error(
                sprintf(
                    $this->trans('commands.multisite.new.errors.chmod-fail'),
                    $this->appRoot . '/sites/' . $this->directory . '/settings.php'
                )
            );

            return 1;
        }
    }
protected function chmodSettings ( ) { try { $ this -> fs -> chmod ( $ this -> appRoot . '/sites/' . $ this -> directory . '/settings.php' , 0640 ) ; } catch ( IOExceptionInterface $ e ) { $ this -> getIo ( ) -> error ( sprintf ( $ this -> trans ( 'commands.multisite.new.errors.chmod-fail' ) , $ this -> appRoot . '/sites/' . $ this -> directory . '/settings.php' ) ) ; return 1 ; } }
Changes permissions of settings.php to 640.

The copy will have 444 permissions by default, which makes it readable by
anyone. Also, Drupal likes being able to write to it during, for example,
a fresh install.
Changes permissions of settings . php to 640 .