Page 1 of 1

Terminal acces for normal users?

Posted: Thu Jul 22, 2021 4:12 pm
by ikheetjeff
Hi,

I would like normal users to access SFTP. If I just change nologin to bash, everyone can access all files (including outside of their own home).

Is it possible for users to access terminal only in their home folder? And that they can only execute a few commands. For example, only git and composer?

Thank you in advance.

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 4:29 pm
by T4B
I think you need to buy an SFTP CHROOT licence
https://vestacp.com/pricing/

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 4:33 pm
by T4B
Image

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 4:48 pm
by ikheetjeff
Yes, I have indeed seen this. But this is without terminal right? I also want them to not be able to do admin stuff in the terminal. Preferably only necessary + composer/git.

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 5:07 pm
by T4B

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 8:16 pm
by ikheetjeff
I just bought it. Unfortunately it's not quite what I was looking for. When someone has "nologin" SSH access, you only get into the user's directory. Only when you choose bash, rbash or something else will you see all the files on the server. I only want to see home directory and terminal access for that directory.

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 8:38 pm
by myVesta

Re: Terminal acces for normal users?

Posted: Thu Jul 22, 2021 8:46 pm
by T4B
ikheetjeff wrote: Thu Jul 22, 2021 8:16 pm I just bought it. Unfortunately it's not quite what I was looking for. When someone has "nologin" SSH access, you only get into the user's directory. Only when you choose bash, rbash or something else will you see all the files on the server. I only want to see home directory and terminal access for that directory.
Image