Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell Unity™ Family Unisphere® Command Line Interface User Guide

Change FTP settings

Modify existing FTP or SFTP settings of a NAS server.

Format

/net/nas/ftp -server <value> set [-ftpEnabled <value>] [-sftpEnabled <value>] [-cifsUserEnabled <value>] [-unixUserEnabled <value>] [-anonymousUserEnabled <value>] [-homedirLimitEnabled <value>] [-defaultHomedir <value>] [-welcome <value>] [-motd <value>] [-auditEnabled {yes|no}] [-auditDir <value>] [-auditMaxSize <value>] {[-allowHost <value>] | [-appendAllowHost <value>] | [-removeAllowHost <value>] | [-denyHost <value>] | [-appendDenyHost <value>] | [-removeDenyHost <value>]} {[-allowUser <value>] | [-appendAllowUser <value>] | [-removeAllowUser <value>] | [-denyUser <value>] | [-appendDenyUser <value>] | [-removeDenyUser <value>]} {[-allowGroup <value>]| [-appendAllowGroup <value>] | [-removeAllowGroup <value>] |[-denyGroup <value>] | [-appendDenyGroup <value>] | [-removeDenyGroup <value>]}

Object qualifier

QualifierDescription
-serverType the name of the NAS server.

Action qualifier

QualifierDescription
-ftpEnabled Indicates whether the FTP server is enabled on the NAS server. Valid values are:
  • yes
  • no
-sftpEnabledIndicates whether the SFTP server is enabled on the NAS server. Valid values are:
  • yes
  • no
-cifsUserEnabledIndicates whether Windows (SMB) users can be authenticated by the FTP or SFTP server. Valid values are:
  • yes
  • no
-unixUserEnabledIndicates whether Unix users can be authenticated by the FTP or SFTP server. Valid values are:
  • yes
  • no
-anonymousUserEnabled Indicates whether the FTP server supports anonymous user authentication. Valid values are:
  • yes
  • no
-homedirLimitEnabledIndicates whether authenticated FTP or SFTP users are limited to their home directories. Valid values are:
  • yes
  • no
-defaultHomedirType the default home directory for the FTP or SFTP users with no defined or accessible home directory.
-welcomeType the welcome message that appears to FTP or SFTP users before authentication.
-motdType the message of the day that appears once the FTP or SFTP users log on.
-auditEnabledIndicates whether FTP/SFTP auditing is enabled on the NAS server. Valid values are:
  • yes
  • no
-auditDirType the directory where the audit files should be saved.
-auditMaxSizeType the maximum size for the audit log file. When this maximum is exceeded, a new audit file is created.
-allowHostType the comma-separated list of allowed client host IPs. The IP can be the IPv4, IPv6, or subnet address.

For subnets, the following notation convention must be used:

  • 10.0.0.1/10
  • 2000:DB1::/10
Network names are ignored.
NOTE:If specified, FTP/SFTP connections are allowed only for clients whose IP addresses are included in those specified in the allowed hosts list. Any clients whose IP is not specified in this list are denied access. If a subnet is defined in the allowed hosts list, the client IP must belong to the specified subnet to be allowed to connect to the NAS FTP/SFTP server. If -allowHost is defined, -denyHost cannot be defined.
-appendAllowHostSpecify one or multiple comma-separated host IPs to append to existing list of allowed host IP addresses.
-removeAllowHostSpecify one or multiple comma-separated host IPs to remove from the existing list of allowed host IP addresses.
-denyHostType the comma-separated list of client host IPs that will be denied access to the FTP/SFTP server. The IP can be the IPv4, IPv6, or subnet address.

For subnets, the following notation convention must be used:

  • 10.0.0.1/10
  • 2000:DB1::/10
Network names are ignored.
NOTE:If specified, FTP/SFTP connections are denied only for clients whose IP addresses are included in those specified in the -denyHost list. Any clients whose IP is not specified in this list are allowed access. If a subnet is defined in the denied hosts list, client IPs which belong to the specified subnet will be denied access to the NAS FTP/SFTP server. If -denyHost is defined, -allowHost cannot be defined.
-appendDenyHostSpecify one or multiple comma-separated host IPs to append to existing list of denied host IP addresses.
-removeDenyHostSpecify one or multiple comma-separated host IPs to remove from the existing list of denied host IP addresses.
-allowUserType the comma-separated list of user names that will be allowed access to the FTP/SFTP server (numerical user IDs are invalid and ignored).
NOTE:If this option is specified, FTP/SFTP connections are allowed only for the specified users. Any users not specified in this list are denied access. If -allowUser is defined, -denyUser cannot be defined.
-appendAllowUserSpecify one or multiple comma-separated user names to append to existing list of allowed users.
-removeAllowUserSpecify one or multiple comma-separated user names to remove from the existing list of allowed users.
-denyUserType the comma-separated list of user names that will be denied access to the FTP/SFTP server (numerical user IDs are invalid and ignored).
NOTE:If this option is specified, FTP/SFTP connections are denied only for the specified users. Any users not specified in this list are denied access. If -denyUser is defined, -allowUser cannot be defined.
-appendDenyUserSpecify one or multiple comma-separated user names to append to existing list of denied users.
-removeDenyUserSpecify one or multiple comma-separated user names to remove from the existing list of denied users.
-allowGroupType the comma-separated list of user group names that will be allowed access to the FTP/SFTP server (numerical group IDs are invalid and ignored).
NOTE:If this option is specified, FTP/SFTP connections are allowed only for the listed groups. Any user groups not specified in this list will be denied access. If -allowGroup is defined, -denyGroup cannot be defined.
-appendAllowGroupSpecify one or multiple comma-separated user group names to append to existing list of allowed groups.
-removeAllowGroupSpecify one or multiple comma-separated user group names to remove from the existing list of allowed groups.
-denyGroupType the comma-separated list of user group names that will be denied access to the FTP/SFTP server (numerical group IDs are invalid and ignored).
NOTE: If this option is specified, FTP/SFTP connections are denied only for the listed groups. Any user groups not specified in this list will be allowed access. If -denyGroup is defined, -allowGroup cannot be defined.
-appendDenyGroupSpecify one or multiple comma-separated user group names to append to existing list of denied groups.
-removeDenyGroupSpecify one or multiple comma-separated user group names to remove from the existing list of denied groups.

Example 1

uemcli -d 10.0.0.1 -u Local/joe -p MyPassword456! /net/nas/ftp -server nas_1 set -ftpEnabled yes -sftpEnabled no -cifsUserEnabled yes -unixUserEnabled yes -anonymousUserEnabled no -homedirLimitEnabled no -defaultHomedir /home/public -welcome "Welcome to this awesome server"
Storage system address: 10.0.0.1
Storage system port: 443
HTTPS connection

Operation completed successfully.

Example 2

uemcli -d 10.0.0.1 -u Local/joe -p MyPassword456! /net/nas/ftp -server nas_1 set -denyUser "guest,jack,john" -appendAllowHost 1.2.3.4,1.2.3.5
Storage system address: 10.0.0.1
Storage system port: 443
HTTPS connection

Operation completed successfully.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\