mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 04:28:15 +00:00
Merge pull request #1101 from Jason-ZW/add-disable-access-to-system
Add disable access to system doc
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
---
|
||||
title: Disabling Access to RancherOS
|
||||
weight: 136
|
||||
---
|
||||
|
||||
_Available as of v1.5_
|
||||
|
||||
In RancherOS, you can set `rancher.password` as a kernel parameter and `auto-login` to be enabled, but there may be some cases where we want to disable both of these options. Both of these options can be disabled in the cloud-config or as part of a `ros` command.
|
||||
|
||||
### How to Disabling Options
|
||||
|
||||
If RancherOS has already been started, you can use `ros config set` to update that you want to disable
|
||||
|
||||
```
|
||||
# Disabling the `rancher.password` kernel parameter
|
||||
$ sudo ros config set rancher.disable ["password"]
|
||||
|
||||
# Disablimg the `autologin` ability
|
||||
$ sudo ros config set rancher.disable ["autologin"]
|
||||
```
|
||||
|
||||
Alternatively, you can set it up in your cloud-config so it's automatically disabled when you boot RancherOS.
|
||||
|
||||
|
||||
```yaml
|
||||
# cloud-config
|
||||
rancher:
|
||||
disable:
|
||||
- password
|
||||
- autologin
|
||||
```
|
||||
Reference in New Issue
Block a user