SQL/MX 2.x Installation and Management Guide (G06.24+, H06.03+)
Managing Database Applications
HP NonStop SQL/MX Installation and Management Guide—523723-004
11-13
Assigning Permissions for Running Database
Applications
Assigning Permissions for Running Database
Applications
Managing Permissions for Files in OSS Space
For SQL applications and user modules stored in OSS space, you control access to
the files with the OSS commands that manage OSS files and directories, including:
•
Displaying and setting file and directory permissions
•
Setting the user mask
•
Changing owners and groups
You use permission codes to specify the types of access that users have to your files.
You can give each of the three types of users (user/owner, group, and all others)
separate permission to read, write, or execute each of your files and directories.
Use the ls command with the -l flag to display the current file permissions for all files
and directories in the current directory.
You must be the owner of a file or directory or a SUPER.SUPER (super ID) user to
change its permission. Use the chmod command to set or change the permissions for
your files and directories.
Every time you create an OSS file or directory, the process you are running
automatically establishes a default permission code for it, so you do not need to
specify one. To further refine the default permission code, you must specify a user
mask with the umask command. The user mask is a numeric value that determines the
maximum access permissions when a file or directory is created. As a result, when you
create a file or directory, its permissions are set to what the creating program specifies,
minus what the umask value specifies.
To change the owner of a file or directory, use the chown command. To use this
command, you must have the same privileges as a SUPER.SUPER user. To change
the group ownership of a file, use the chgrp command. To change group ownership,
you must be a member of the group from which you are changing the file.
For more information about these and other OSS commands, see the Open System
Services User’s Guide.
Managing Permissions for Files in Guardian Space
For SQL applications programs stored in Guardian space, you control access to the
files with these user interfaces:
•
TACL commands and programs to manage user and logon security
•
File Utility Program (FUP) commands to manage disk file security
•
Safeguard software to provide additional security features for systems and
distributed database environments