umask
option,
you can grant permissions to users on a conditional basis if the user
is part of the SAS Business Rules Manager user group.
/sasconfigdir/Lev1/SASApp/appservercontext_env_usermods.sh
.
CMD=<your-operating-system-path> CURR_GID=`eval $CMD -g` GID=<solution-group-id> if [$CURR_GID -eq $GID]; then umask 002 fi
1 | 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 entering a which
id or whence id command
on your console.
|
2 | In
the GID=<solution-group-id> ,
specify the group ID. Type id on
your console to get the GID and UID information.
|
3 | A
value of 002 is recommended for the umask option.
|
Operating Environment
|
Sample Code
|
---|---|
AIX
|
CMD=/usr/bin/id CURR_GID=‘eval $CMD -g‘ GID=201 if [ $CURR_GID -eq $GID ]; then umask 002 fi |
H64I (HP-Itanium)
|
CMD=/usr/bin/id CURR_GID=‘eval $CMD -g‘ GID=201 if [ $CURR_GID -eq $GID ] ; then umask 002 fi |
S64 (Solaris)
|
CMD=/usr/xpg4/bin/id CURR_GID=‘eval $CMD -g‘ GID=201 if [ $CURR_GID -eq $GID ] ; then umask 002 fi |
SAX (Solaris for X64)
|
CMD=/usr/xpg4/bin/id CURR_GID=‘eval $CMD -g‘ GID=201 if [ $CURR_GID -eq $GID ] ; then umask 002 fi |
LNX (Linux)
|
#!/bin/bash CMD=/usr/bin/id CURR_GID=‘eval $CMD -g‘ GID=500 if [ "$CURR_GID" -eq "$GID" ] ; then umask 002 fi |