# Control Access to NFS Shared Folders

You can control access to the NFS shared folders using User and Group IDs.

Depending on how your NFS server is configured, programs accessing shared folders may have to run with a specific user ID (`uid`) and group ID (`gid`).

While you can control the `uid` of a container through a field called `runAsUser`, controlling its `gid` is not possible in version 3.11 of OpenShift. If your NFS setup requires controlling the `gid` used by the EMS server, a workaround consists of creating a specific user and group in the EMS Docker image (see EMS Docker Image) and setting its `uid` and `gid` to the desired values.

As a result, an EMS server running in a container started from that image will access its store, log, configuration, and other files using the `uid` and `gid` specified by the NFS server.

Copyright © Cloud Software Group, Inc. All rights reserved.