Remove insecure password


#1

Is there a way to remove the insecure password which was set with installation?


#2

There is no password set on install of modern versions, only a SSH key for the rancher user. `

[rancher@ros ~]$ sudo grep rancher /etc/shadow
rancher:*:17568:0:99999:7:::

#3

There is on my system. We have enabled it at install to make sure we can access the node from console. (As in VMWare console)
Now I want to remove it. How?


#4

Edit /etc/shadow and change the text between the 1st and 2nd : on the line starting with rancher to * (like above).


#5

Ok, but it is not persistent. When I reboot the node password and reboot the node the password is set again.
When I view my cloud-config it shows that password is still available.

$ sudo ros config export | grep password
  password: << REMOVED >>
$

#6

How are these booted? are you running from ISO? have you configured persistent storage?