Answer the question
In order to leave comments, you need to log in
How to attach a user to an openVZ container?
C created several openVZ containers (101, 102).
On the main server there are 2 users for example test1 and test2.
Tell me, please, how can I make it so that when I log in via ssh to user test1, I get not into his home folder, but into container 101?
Answer the question
In order to leave comments, you need to log in
On the example of 2018 (everything works, checked).
Create scripts like:
(file /usr/bin/vz-2018.sh )
#!/bin/bash
if ; then
vzctl enter 2018
else
sudo /usr/bin/vz-2018.sh
fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question