Re: Choice of a Container to connect in during the boot [message #35708 is a reply to message #35702] |
Thu, 16 April 2009 11:52 |
maratrus
Messages: 1495 Registered: August 2007 Location: Moscow
|
Senior Member |
|
|
Hi,
Quote: |
So, if there are a lot of users in this computer, each of them can access to any container.
|
A nonprivileged user cannot enter container only with help of sudo command.
Quote: |
I just would like to know if there is a way to avoid it, to force to enter a password to access the container. Each user would have his own container.
|
There are no standard OpenVZ tools to achieve this goal (frankly speaking, I don't know why do you need such behavior). But I guess, it worth trying to resolve the issue using pure Linux resources.
For example, you can change /etc/passwd (use vipw command) so that the initial command, that are invoked when a user enters the system, would be not a standard /bin/bash but /home/username/enter. /home/username/enter is a bash script which may be a simple "/bin/bash -c "sudo /usr/sbin/vzctl enter $VEID"" command or can carry out more complicated logic.
|
|
|