Pattern Strings in Directory Paths
Reflection for Secure IT supports the following pattern strings for specifying directory paths for user public key locations and SFTP file transfer directories.
This string
|
Evaluates to
|
%D
|
The user's .
For example, if the server is running on Windows XP and the user name is "joe", %D\.ssh2 will typically be equivalent to:
C:\Documents and Settings\joe\.ssh2
|
%u
|
The user's login name.
For example, if the user name is "joe", ssh_users\%u is equivalent to:
C:\ssh_users\joe.
Note: With this option, the server is unable to distinguish between a local and domain user with the same user name — both are given access to the same directory.
|
%U
|
The user's domain name and login in the format "domain.username".
For example, if "joe" logs in from the "sky" domain (sky\joe), ssh_users\%U\ is equivalent to:
C:\ssh_users\sky.joe
|
Notes
- The value of %D is equivalent to the Windows environment variable USERPROFILE. Depending on how users have logged into the server host previously, the user-specific subdirectory at the end of this path may be just a user name, or may be both a user and domain in the format "user.domain". For this reason, you cannot use either %u or %U as a portion of a path meant to point to a user's Windows profile directories; always use %D for this purpose. Use %u and %U if you want to create your own user-specific locations in some other location, for example on a shared network file server.
- The value of %u is equivalent to the Windows environment variable USERNAME.
- The value of %U is based on two Windows environment variables: USERDOMAIN and USERNAME.
|