Defines the environment attributes for users.
The /etc/security/environ file is an ASCII file that contains stanzas with the environment attributes for users. Each stanza is identified by a user name and contains attributes in the Attribute=Value form, with a comma separating the attributes. Each attribute is ended by a new-line character, and each stanza is ended by an additional new-line character.
If environment attributes are not defined, the system uses default values. Each user stanza can have the following attributes:
For a description of environment variables, refer to the /etc/environment file.
Access to all the user database files should be through the system commands and subroutines defined for this purpose. Access through other commands or subroutines may not be supported in future releases.
The mkuser command creates a user stanza in this file. The initialization of the attributes depends upon their values in the /usr/lib/security/mkuser.default file. The chuser command can change these attributes, and the lsuser command can display them. The rmuser command removes the entire record for a user.
This command should grant read (r) access to the root user, members of the security group, and others consistent with the security policy for the system. Only the root user should have write (w) access.
Event | Information |
---|---|
S_ENVIRON_WRITE | file name |
A typical stanza looks like the following example for user dhs:
dhs: usrenv = "MAIL=/home/spool/mail/dhs,MAILCHECK=600" sysenv = "NAME=dhs@delos"
This command is part of Base Operating System (BOS) Runtime.
/etc/security/environ | Specifies the path to the file. |
/etc/environment | Specifies the basic environment for all processes. |
/etc/group | Contains the basic attributes of groups. |
/etc/security/group | Contains the extended attributes of groups. |
/etc/passwd | Contains the basic attributes of users. |
/etc/security/passwd | Contains password information. |
/etc/security/user | Contains the extended attributes of users. |
/etc/security/limits | Contains the process resource limits of users. |
/usr/lib/security/mkuser.default | Contains the default values for user accounts. |
/etc/security/lastlog | Contains last login information. |
The chuser command, login command, lsuser command, mkuser command, rmuser command, setsenv command, su command.
The getpenv subroutine, getuserattr subroutine, putuserattr subroutine, setpenv subroutine.
File and System Security Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.