Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

FileServerUserCollection.Add Method

Namespace: Rebex.Net.Servers
Assembly: Rebex.FileServer.dll (version 7.0.9147)

Add(String, String)

Adds a new file server user with the specified password.

Declaration
public FileServerUser Add(string userName, string password)
Parameters
Type Name Description
String userName

User name.

String password

Password.

Returns
Type Description
FileServerUser

An instance of the newly-created user.

Remarks

The password is one-way transformed to a SHA-256 hash with a random salt value.

Add(String, String, String)

Adds a new file server user with the specified password and their virtual filesystem based at the specified path.

Declaration
public FileServerUser Add(string userName, string password, string physicalRootPath)
Parameters
Type Name Description
String userName

User name.

String password

Password.

String physicalRootPath

The placement of the virtual root of the user.

Returns
Type Description
FileServerUser

An instance of the newly-created user.

Remarks

The password is one-way transformed to a SHA-256 hash with a random salt value.

Add(String, String, ShellType)

Adds a new file server user with the specified password and their virtual filesystem based at the specified path.

Declaration
public FileServerUser Add(string userName, string password, ShellType shellType)
Parameters
Type Name Description
String userName

User name.

String password

Password.

ShellType shellType

Specifies which kind of shell to use for this user.

Returns
Type Description
FileServerUser

An instance of the newly-created user.

Remarks

The password is one-way transformed to a SHA-256 hash with a random salt value.

Add(String, String, String, ShellType)

Adds a new file server user with the specified password and their virtual filesystem based at the specified path.

Declaration
public FileServerUser Add(string userName, string password, string physicalRootPath, ShellType shellType)
Parameters
Type Name Description
String userName

User name.

String password

Password.

String physicalRootPath

The placement of the virtual root of the user.

ShellType shellType

Specifies which kind of shell to use for this user.

Returns
Type Description
FileServerUser

An instance of the newly-created user.

Remarks

The password is one-way transformed to a SHA-256 hash with a random salt value.

Add(String, String, String, String)

Adds a new file server user with the specified password, their virtual filesystem based at the specified path, and initial path in the virtual filesystem.

Declaration
public FileServerUser Add(string userName, string password, string physicalRootPath, string initialVirtualPath)
Parameters
Type Name Description
String userName

User name.

String password

Password.

String physicalRootPath

The placement of the virtual root of the user.

String initialVirtualPath

The initial path (i.e. home directory) of the user. This is virtual filesystem path, relative to the virtual root.

Returns
Type Description
FileServerUser

An instance of the newly-created user.

Remarks

The password is one-way transformed to a SHA-256 hash with a random salt value.

In This Article
  • Add(String, String)
  • Add(String, String, String)
  • Add(String, String, ShellType)
  • Add(String, String, String, ShellType)
  • Add(String, String, String, String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies