1833787 Members
2575 Online
110063 Solutions
New Discussion

Re: root profile

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

root profile

Hello,

I have installed 11.0 on an n-class server and am having some issue's with root profile and umask settings.

when I type umask -S to display I get bad substitution displayed. I type
# umask u=rwx,q=rw,0=r

I type umask and 013 is dpslayed but when I create a file the permissions are -rw-rw-r---

what files define settings such as umask other than /.profile as there is no entry in here for umask and the system default after install is 077.

Thanks
hello
6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor

Re: root profile

Hi,

Is there a system umask in the /etc/profile ?

Do you have a trusted system ?

Robert-Jan
lawrenzo_1
Super Advisor

Re: root profile

yes the system is trusted and there is no entry of umask in /etc/profle
hello
Robert-Jan Goossens_1
Honored Contributor

Re: root profile

Your system has been trusted and therefore the umask is changed to 077.
This is part of the security added on a trusted system.

If you wish to change the umask you can do so by editing the file /etc/profile
to set the umask value to that desired. You can also set it in the .profile of
individual users.

Regards,
Robert-Jan
lawrenzo_1
Super Advisor

Re: root profile

ok I thought that was the case but why doesn't umask -S not work and also
# umask u=rwx,q=rw,0=r is equal to 013 which creates new files as -rw-rw-r-

is there any an easy way to work out the umsk values - i want any new files created as -rwxrw-r-

T Again
hello
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: root profile

umask (file / directory)

000 rw-rw-rw-/rwxrwxrwx

002 rw-rw-r--/rwxrwxr-x

022 rw-r--r--/rwxr-xr-x

027 rw-r-----/rwxr-x---

077 rw-r-----/rwx------

Umask can not set files to rwx.

You can set the UMASK=XXX in the /etc/profile

Robert-Jan
lawrenzo_1
Super Advisor

Re: root profile

thanks man
hello