FILE MASK IN CREATION OF NEW USERS
ITEM: RTA000028735
When I create or change a user I have tried to use 666 for the file
mask because I want full access to the files. It does not seem to
work. If I create a file and then look at it using ls -l the access
is not rw for everyone. I am doing something wrong?
---------- ---------- ---------- --------- ---------- ----------
A: I was able to change the file masking for read and write permission
for everyone using the following command:
umask ugo+rw
The files I created after this had "rw" permissions for all. You
should be able to put this command in a user's .profile file to have
it executed at login.
When using SMIT, the file creation mask field is what you would
subtract from the default(666) to be the desired permissions for files.
For example:
'umask 044' will give you the equivalent of 'chmod 622' for a file.
'umask 000' will give you the equivalent of 'chmod 666' for a file.
This is the way it SHOULD work, but I was unable to create files as
the newly created user when I put "000" in the file creation mask field.
I am using AIX 3.2.3. You may wish to try this and see if it works for
you. I solved the problem by putting the following entry in my
/etc/profile file.
umask ugo+rw
This sets the user, group and others permissions to "rw". Then each
file I created had the proper permissions. If you would like this only
for specific users, put the same entry in their /u/$USER/.profile file.
If you feel this is a defect, you may wish to contact AIX Software
Support and report it as such.
---------- ---------- ---------- --------- ---------- ----------
This item was created from library item Q617811 6HFXJ
Additional search words:
ARISC CREATION CUSTORG FILE FILES IX JAN93 MASK NEW RISC USER USERS
6HFXJ
WWQA: ITEM: RTA000028735 ITEM: RTA000028735
Dated: 11/1996 Category: RISCTCP
This HTML file was generated 99/06/24~12:43:11
Comments or suggestions?
Contact us