Today I needed to change the umask value for a user in AIX. It was set to default: 022
That means that files will be created with 644 permissions. To allow the user to create files with 666 permissions by default I needed to change the umask value for the user. First I checked the current umask value:
# lsuser sneill
... umask=22 ...
Since the user creates files with 644 permissions that was not surprising. Then I changed the umask value to zero:
# chuser umask=0 sneill
And checked again:
# lsuser sneill
... umask=0 ...
Now the user will create files with 666 permission by default (and 777 for directories).
No comments:
Post a Comment