OpenVZ Forum


Home » General » Support » Choice of a Container to connect in during the boot
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 Go to previous message
maratrus is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Unable to fork: Cannot allocate memory
Next Topic: VPN inside VE, tunnel only specific traffic
Goto Forum:
  


Current Time: Tue Aug 13 21:30:06 GMT 2024

Total time taken to generate the page: 0.02869 seconds