Terminal acces for normal users?

Post Reply
ikheetjeff
Posts: 15
Joined: Tue Jul 20, 2021 4:06 am

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.
User avatar
T4B
Posts: 160
Joined: Sat Jul 11, 2020 9:44 am
Been thanked: 5 times

I think you need to buy an SFTP CHROOT licence
https://vestacp.com/pricing/
User avatar
T4B
Posts: 160
Joined: Sat Jul 11, 2020 9:44 am
Been thanked: 5 times

Image
ikheetjeff
Posts: 15
Joined: Tue Jul 20, 2021 4:06 am

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.
ikheetjeff
Posts: 15
Joined: Tue Jul 20, 2021 4:06 am

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.
User avatar
myVesta
Site Admin
Posts: 928
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

User avatar
T4B
Posts: 160
Joined: Sat Jul 11, 2020 9:44 am
Been thanked: 5 times

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
Post Reply