beautypg.com

Accessing shares, Ftp and ftps commands for anonymous shares – HP StoreAll Storage User Manual

Page 105

background image

Accessing shares

Clients can access an FTP share by specifying a URL in their browser (Internet Explorer or Mozilla
Firefox). In the following URLs, IP_address:port is the IP (or virtual IP) and port configured for
the share.

For a share configured with an IP-based virtual host and the anonymous parameter is set to
true

, use the following URL:

ftp://IP_address:port/

For a share configured with a userlist and having the anonymous parameter set to false,
use the following URL:

ftp://@IP_address:port/

NOTE:

When a file is uploaded into an FTP share, the file is owned by the user who uploaded

the file to the share.

If a user uploads a file to an FTP share and specifies a subdirectory that does not already exist,
the subdirectory will not be created automatically. Instead, the user must explicitly use the mkdir
ftp

command to create the subdirectory. The permissions on the new directory are set to 755. If

the anonymous user created the directory, it is owned by ftp:ftp. If a non-anonymous user
created the directory, the directory is owned by user:group.

You can also use curl commands to access an FTP share. (The default SSL port is 990.)

You can access the shares as follows:

As an anonymous share. See

“FTP and FTPS commands for anonymous shares” (page 105)

.

As a non-anonymous share. See

“FTP and FTPS commands for non-anonymous shares”

(page 106)

.

From any Fusion Manager that has FTP clients. See

“FTP and FTPS commands for Fusion

Manager” (page 107)

.

FTP and FTPS commands for anonymous shares

This section provides the following FTP and FTPS commands for anonymous shares. All commands
should be entered on one line.

Table 1 Upload a file by using the FTP protocol for anonymous shares

Command

Use this command when...

curl -T ftp://IP_address/pub/

Files can be uploaded by any user

curl -T ftp://IP_address/pub/

-u ftp:ftp

You must provide the default user name and password
(“ftp” for the username and “ftp” for the password)

Table 2 Upload a file by using the FTPS protocol for anonymous shares

Command

Use this command when...

curl --ftp-ssl-reqd --cacert

file> -T

ftp://IP_address:990/pub/

You do not need to specify the user name and password

curl --ftp-ssl-reqd --cacert

file> -T

ftp://IP_address:990/pub/ -u ftp:ftp

You must provide the default user name and password
(“ftp” for the username and “ftp” for the password)

Accessing shares 105