Solved Setup SFTP User with access to a specific directory on Ubuntu
-
I would like to setup a SFTP User with specific access to a directory on Ubuntu Server. I would also like the user to be automatically directed to this directory once they authenticate if that is possible.
-
No clue how to do it, but I think it might have something to do with setting the home directory of the user?
-
@Dashrender said:
No clue how to do it, but I think it might have something to do with setting the home directory of the user?
that handles where they go by default. My guess is that he wants this for security, too. So a chrooted jail.
-
If all you need is the default directory, then you just change the home directory in the /etc/passwd file as @Dashrender suggests.
-
@scottalanmiller said:
If all you need is the default directory, then you just change the home directory in the /etc/passwd file as @Dashrender suggests.
I want to give full rights to that directory, but nothing else.
-
@IRJ said:
@scottalanmiller said:
If all you need is the default directory, then you just change the home directory in the /etc/passwd file as @Dashrender suggests.
I want to give full rights to that directory, but nothing else.
Okay, so default is not enough. Chrooting is necessary.
-
-
-
That worked. Thanks
-
Woot!