Could we put a variable for external storages

When I configure an external storage for all my users, I need to specify a path which is variable for example :
Folder Name : MyHome
External Storage : SFTP
Login credential save in session
ServerName : myserver
Root : /home/$USER

Is it possible or is there an other way to do that ?

Thanks in advance

Not by default as far as I know. Not sure if there are other ways or if anything is planned.

@icewind @jospoortvliet

I was just looking some info about external storage, and stopped in this old post… if you havent realized it yet, you can add $user like for ie I have an SFTP external mount with path /home/$user, and my linux users named as my nexcloud users, so $user is replaced by the user logged.

Hi @Sebadamus,

Thanks for your answer.
It would be exactly what I want to do but it doesn’t work for me.
Folder Name : MyHome
External Storage : SFTP
Login credential save in session
ServerName : myserver
Root : /home/$user

I don’t see any error in logfile with a loglevel 1.

using $user worked for me in nc-versions prior to 12.x.
due to several circumstances i couldn’t get it to run in 12.x and thus got away from it. so i can’t tell if it’s a bug or something else.

Thanks @JimmyKater for your answer.
My NC version is 11.0.4 but I will upgrade soon in 12.
So, do I have another solution to mount an individual SFTP share for my users ?

Thanks a lot

ummm since i got away from it some months ago, already it’s hard to remember what i did. but it just came to my mind that i needed to md (make directory) for $user manually… (since it was then on a fat32-formatted hd i didn’t need to take care about the ownership of the directory) before being able to use them…

meaning user: AbCdE had a manually made directory in /home/AbCdE

since $user-usage didn’t make the directories itself (i used it via smb)