Top
Cloud Storage Gateway V1.3.0 User's Guide
FUJITSU Software

3.3.4 Administrator Privilege Setting for Shared Folders

Depending on the backup software that is being used, you must be able to access shared folders with administrator privileges.
To access the shared folders in this product with administrator privileges, perform the following.

Administrator Privilege Setting (When NFS Is Selected for the Protocol)

When creating a shared folder, set "NFS root access allow hosts".
The root user of the set host can access with administrator privileges.

Administrator Privilege Setting (When SMB Is Selected for the Protocol)

After creating a shared folder, log in to the console of this product using the administrator account (administrator) and execute the following command.

# csgadm smbconf set -share 'shared folder name' -key 'admin users' -value 'user name,@group name'

For "shared folder name", specify the name of the created shared folder.
Specify at least one NAS access user or NAS access group to set with administrator privileges in "user name, @group name". To specify multiple values, separate each item with a comma. When specifying NAS access groups, specify "@" at the beginning of the name.

The following is an example of assigning NAS access user "User A" and NAS access group "Group G" with administrator privileges for shared folder "SF#001".

# csgadm smbconf set -share 'SF#001' -key 'admin users' -value 'User A,@Group G'

As shown below, user names or group names can be enclosed in double quotes.

# csgadm smbconf set -share 'SF#001' -key 'admin users' -value '"User A","@Group G"'

If the setting is successful, the setting details are displayed as follows.

admin users = "User A","@Group G"

To check the current setting, execute the following command. The information that is displayed is the same as when the setting succeeded.

# csgadm smbconf show -share 'SF#001' -key 'admin users'
admin users = "User A","@Group G"

This command overwrites the existing settings. Therefore, to change or add a NAS access user or NAS access group based on the ones already set, check the existing settings and specify according to the displayed content. The following is an example of adding NAS access user "User B" when the above example is the current state.

# csgadm smbconf set -share 'SF#001' -key 'admin users' -value '"User A","@Group G","User B"'

To delete the settings, execute the following.

# csgadm smbconf unset -share 'SF#001' -key 'admin users'

Point

  • For the NAS access usernames and NAS access group names that can be specified, refer to "Owner" and "Group" in "3.3.2 Information Required for Registering a Shared Folder".

  • If the shared folder name, NAS access user name, or NAS access group name includes multibyte characters, log in to this product from a terminal that can use UTF-8 and execute this command.

  • The specifiable character string length for "-value" is up to 2,000 bytes.

Note

Before assigning the target shared folder as a network drive, execute this command. If the shared folder has already been assigned as a network drive, execute this command and then temporarily release the network drive assignment.