OpenVZ Forum


Home » General » Support » Default status of 'root' in container?
Default status of 'root' in container? [message #51873] Fri, 06 February 2015 00:27 Go to next message
jjbada1 is currently offline  jjbada1
Messages: 2
Registered: June 2014
Junior Member
I read the following -

"By default, the root account is locked in a newly created Container, and you cannot log in."

Of course, you can enter with "vzctl" which I guess is some sort of higher-level openvz function.

The user guide then goes on to say "vzctl set 101 --userpasswd root:test" to set root password, which would could then allow root SSH (if you wanted to do this).

However, until a password is set, what exactly is the true nature of the root account? For example, if I created a non-root user and then SSH'd in, if I attempted to elevate to su, is it correct that this would not be possible?

So what does "locked" mean? Processes are still running as root.

Thanks
Re: Default status of 'root' in container? [message #51877 is a reply to message #51873] Fri, 06 February 2015 14:45 Go to previous message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
sorry if I'm wrong but locked means just that password is not set for user root.

so ssh root login and su should not work.
Previous Topic: How to access internet in container
Next Topic: Kernel Panic in OpenVZ Booting Stage - CentOS boots fine
Goto Forum:
  


Current Time: Thu Apr 25 13:33:04 GMT 2024

Total time taken to generate the page: 0.01609 seconds