# Remove insecure password

**URL:** <https://forums.suse.com/t/remove-insecure-password/9642>\
**Category:** RancherOS\
**Created:** [February 26, 2018, 9:09pm UTC](https://forums.suse.com/t/remove-insecure-password/9642 "2018-02-26T21:09:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgruyters](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rgruyters/32/3198_2.png) [@rgruyters](https://forums.suse.com/u/rgruyters)\
**Post date:** [February 26, 2018, 9:09pm UTC](https://forums.suse.com/t/remove-insecure-password/9642/1 "2018-02-26T21:09:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [February 27, 2018, 4:33am UTC](https://forums.suse.com/t/remove-insecure-password/9642/2 "2018-02-27T04:33:53Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![rgruyters](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rgruyters/32/3198_2.png) [@rgruyters](https://forums.suse.com/u/rgruyters)\
**Post date:** [February 27, 2018, 5:40am UTC](https://forums.suse.com/t/remove-insecure-password/9642/3 "2018-02-27T05:40:26Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [February 27, 2018, 8:07am UTC](https://forums.suse.com/t/remove-insecure-password/9642/4 "2018-02-27T08:07:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rgruyters](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rgruyters/32/3198_2.png) [@rgruyters](https://forums.suse.com/u/rgruyters)\
**Post date:** [February 27, 2018, 8:45am UTC](https://forums.suse.com/t/remove-insecure-password/9642/5 "2018-02-27T08:45:55Z")

</div>

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.

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

```

---

<div class="post-metadata">

**Author:** ![guy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/guy/32/4932_2.png) [@guy](https://forums.suse.com/u/guy)\
**Post date:** [March 11, 2019, 5:42pm UTC](https://forums.suse.com/t/remove-insecure-password/9642/6 "2019-03-11T17:42:40Z")

</div>

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