Using the
umask
option, you can grant permissions to the SAS Model
Manager users on a conditional basis if the user is part of the SAS
Model Manager user group.
Note: This example might require
changes to fit your server configuration. In particular, this example
could result in changed permissions on other SAS files, such as OLAP
cubes. For example, if you are working with multiple UNIX groups and
have a SAS OLAP Server, you must ensure that the account under which
the SAS OLAP Server runs keeps the Read and Execute permissions to
OLAP files.
To set these permissions:
-
On each SAS Workspace
Server, open
/sasconfigdir/Lev1/SASApp/appservercontext_env.sh
.
-
Enter the configuration
information for your operating environment. Here is the general format
of this code:
Note: The following code uses grave
accents and not quotation marks.
CMD=<your-operating-system-path>
CURR_GID=`eval $CMD -g`
GID=<solution-group-id>
if [$CURR_GID -eq $GID]; then umask 002 fi
a |
In the CMD=<your-operating-system-path> , specify the full path on your server where the
ID command is stored. You can get this information by typing a which id or whence id command on your console.
|
b |
In the GID=<solution-group-id> , specify the group ID. Type id on your console to get the GID and UID information.
|
c |
A value of 002 is recommended for the umask option.
|
Here are code examples
for each UNIX environment where SAS Model Manager is supported:
|
|
|
CMD=/usr/bin/id
CURR_GID=‘eval $CMD -g‘
GID=201
if [ $CURR_GID -eq $GID ]; then umask 002
fi
|
|
CMD=/usr/bin/id
CURR_GID=‘eval $CMD -g‘
GID=201 if [ $CURR_GID -eq $GID ] ; then umask 002
fi
|
|
CMD=/usr/xpg4/bin/id
CURR_GID=‘eval $CMD -g‘
GID=201 if [ $CURR_GID -eq $GID ] ; then umask 002
fi
|
|
CMD=/usr/xpg4/bin/id
CURR_GID=‘eval $CMD -g‘
GID=201
if [ $CURR_GID -eq $GID ] ; then umask 002
fi
|
|
#!/bin/bash
CMD=/usr/bin/id
CURR_GID=‘eval $CMD -g‘
GID=500
if [ "$CURR_GID" -eq "$GID" ] ; then umask 002
fi
|