Oracle Solaris System Administration (MOSC)

MOSC Banner

Setting umask value in Solaris 11.4 for all users

Hello,

I'm following https://docs.oracle.com/cd/E37838_01/html/E61023/smfap-syslogenvar.html to modify the umask. I want to set umask to 077 for a complete security so new files creates with rwx------ permission. But it is not working. I did the following:

root@AI-P:~# svcprop -p login/environment account-policy:default

login/environment/path astring

login/environment/root_path astring

login/environment/set_shell boolean

login/environment/timezone astring

login/environment/ulimit integer

login/environment/umask integer

root@AI-P:~# pfexec svcadm enable account-policy

root@AI-P:~# svcs -a | grep account-policy

online     12:18:20    svc:/system/account-policy:default

root@AI-P:~# svccfg -s account-policy

svc:/system/account-policy> setprop config/etc_default_login/disabled = boolean: false

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center