L
L
littleguga2015-10-13 18:25:28
System administration
littleguga, 2015-10-13 18:25:28

How to transfer a user to a folder after authorization?

I made a chroot jail on the /myuser/home folder, when you log in via sftp it opens, but you need to immediately transfer it to the /myuser/home/files folder.
How to do this? What to look for or did the chroot jail do it wrong? (when trying to make a jail on /files, the user cannot log in at all).
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadz Goldman, 2015-10-13
@littleguga

Crutch: in .bashrc enter cd /some/directory/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question