cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 8

use a login variable in group home directory and directory access

Jump to solution

Is it possible to use a system variable like $LoginID in a Group's Home Directory and Directory Access settings?  I was thinking to create a generic group to span multiple users that would help define the path for all home directories for users who are members of the group.  I tried using the $LoginID found on System Variables In Serv-U.  The result was when the user signed into the FTP server the home directory with the directory name $LoginID was created instead of the actual loginId of the user.  So, my attempts to see if it works didn't pan out with much success.  If it matters this is a group and user created in the "Database Groups" and "Database Users" on an Ftp domain.  This is Serv-U FTP 15.1.0 on Linux.


Thank you,

Mark


0 Kudos
1 Solution
Level 11

Try using %USER% instead of $LoginID.

View solution in original post

0 Kudos
3 Replies
Level 11

Try using %USER% instead of $LoginID.

View solution in original post

0 Kudos

Yes, this worked.  Where are more of these variables defined in the documentation?

0 Kudos

From the top part of the System Variables help documentation page:

Furthermore, you can also use the %USER%, %HOME%, %USER_FULL_NAME%, and %DOMAIN_HOME% variables. For more information about these variables, see "Directory Access Rules"

In general, it's best to use the $ macros for events and within system messages (like login messages or customized FTP responses) while using the % macros for configuration values.  Many of the $ macros don't have explicit values are until a session has been successfully established or a specific action has taken place (like a file transfer) whereas the % macros have explicit values at all times.