OpenVZ Forum


Home » General » Support » Cannot set password
Cannot set password [message #49302] Fri, 19 April 2013 06:28 Go to next message
Trykiz is currently offline  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 Go to previous messageGo to next message
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.
Re: Cannot set password [message #49320 is a reply to message #49317] Sat, 20 April 2013 11:46 Go to previous messageGo to next message
Trykiz is currently offline  Trykiz
Messages: 2
Registered: April 2013
Location: Lithuanian
Junior Member
Thanks, it's working, before I was tryed to use without --save somehow it doesnt worked, now it's cool.
Re: Cannot set password [message #49351 is a reply to message #49302] Tue, 23 April 2013 21:49 Go to previous message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
thanks for the info
Previous Topic: 042stab076.5 and mount options behavior (remount)
Next Topic: Template contribution
Goto Forum:
  


Current Time: Sat Jul 27 13:58:00 GMT 2024

Total time taken to generate the page: 0.02811 seconds