Cannot set password [message #49302] |
Fri, 19 April 2013 06:28 |
Trykiz
Messages: 2 Registered: April 2013 Location: Lithuanian
|
Junior Member |
|
|
Hi,
I'm using command below to change password, but it's giving me error.
Command: vzctl set 180 --userpasswd root:asd123 --save
Error: No changes in CT configuration, not saving
|
|
|
Re: Cannot set password [message #49317 is a reply to message #49302] |
Sat, 20 April 2013 10:40 |
Paparaciz
Messages: 302 Registered: August 2009
|
Senior Member |
|
|
--save flag is useless, so don't use it
from man vzctl:
--userpasswd user:password
Sets password for the given user in a container, creating the user if it does not exists. Note that this option is not saved in configuration file at all (so --save flag is useless), it is applied to the container (by modifying its /etc/passwd and /etc/shadow files).
In case container root filesystem is not mounted, it is automatically mounted, then all the appropriate file changes are applied, then it is unmounted.
Note that container should be created before using this option.
|
|
|
|
|