> For the complete documentation index, see [llms.txt](https://docs.linuxcontrolcenter.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxcontrolcenter.com.br/en/managed-files/create-managed-file.md).

# Create Managed File

## Requirements

Linux Control Center = 2.10.X or higher

## Overview

Linux Control Center allows you to standardize configuration files for managed Hosts by uploading a configuration file.

## Objective

This document aims to demonstrate step by step how to use the *Files* functionality of Linux Control Center.

## Create Managed File

### Essential Settings

1. Access the **Files** screen on the left side menu.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-5830d70fa5f978a6f442332e44740d9f16497cfb%2Ffile_dashboard.png?alt=media)
2. Click **Create**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-a5cad4f66c4ffc61a31828cf5736c816d46aedbe%2Fbotao_create.png?alt=media)
3. Fill in the required fields as instructed below;

**Name:** Name to identify the file only in the LCC Console.\
**Upload File:** Field to upload the desired file.\
**Path:** Directory, Name and Extension in which it will be stored on the Host.\
**Owner:** User who will have access permissions to the file.\
**Group:** Group that will have access permissions to the file.\
**Permissions:** Level of access permission to the file.<br>

```
![](/pt-br/images/files/create_file/campos_iniciais.png)
```

### Additional Settings

* These settings allow you to create a User, Group or Directory when they do not exist on a Host where the file will be uploaded. It also allows you to create a copy of the file and move it to a desired directory if one already exists before performing the action of adding the new file to the Host.

**Create User:** Creates the user from the *Owner* field if it does not exist on the Host.\
**Create Group:** Creates the access group from the *group* field if it does not exist on the Host.\
**Create Directory:** Creates the directory to save the file from the *Path* field if it does not exist on the Host.\
**Backup:** Creates a copy with date and time if a file with the same name and extension already exists in the same *Path* directory.\
**Move Backup:** Moves the created copy to the directory entered in the *Backup Directory* field.<br>

```
![](/pt-br/images/files/create_file/campos_adicionais.png)
```

1. Click **Save** to make the file an LCC Managed File.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-83887351af7257429f57bdd9bed80a8c2859aa6e%2Fbotao_save.png?alt=media)
2. Click on Managed File to check or change the File settings.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-65bd487f2ee8a405c3070113132ca8daa7d3fae3%2Farquivo_criado.png?alt=media)
3. All fields filled in when creating the file will be displayed. You can also download it by clicking on **Download**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-c2502198da3f28619357f40b892d0861735d1b33%2Fbotao_download.png?alt=media)

### File Host and Content

1. Access the File created and click on *File Host*.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-b4475bceb8d2195c162ccffb65afa9b6bbc03649%2Ftela_file_host.png?alt=media)
2. The **ADD Host** button creates an empty row in the table, and by clicking on the arrow in the *Host* column, you will be able to choose a Host to create the file.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-cffb594ffec13258bf8d1628c59469a8dd8d7884%2Fbotao_add_host.png?alt=media)
3. Click **Save** after selecting the Host to start the *File Add* Action that will include the file according to the settings.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-cd9498a6edac7e2e0a258e36295200d71c22a0b2%2Fbotao_save_tela_file_host.png?alt=media)
4. This screen displays which *Hosts* the file was added to, along with the date and time it was created. The *Sync* Column indicates whether the file is synchronized with the latest version in the LCC Console.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-3f67a3cff4e921a98b1d5406b4e7c7ed7544640d%2Farquivo_adicionado_host.png?alt=media)
5. The trash can icon button in the *Actions* column makes it easier to delete the file from the desired Host from this screen, but it is also possible to delete the file from the **Hosts** screen or from the **Host Groups** screen for a larger number of Hosts.
6. When you click this button, the *File Del* action will be started immediately and the file will be removed from the chosen Host.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-8a0cc8dd8624c2e722ea8b910da15883a4ad7021%2Fbotao_lixeira.png?alt=media)
7. The **Content** screen displays the contents of the File in which it is saved in the LCC Console.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-64cdc8ddd168c5c5579ac8ca1b75c33d790eda1e%2Fcontent.png?alt=media)

## Add Managed File to Host

1. Access the **Hosts** screen.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-9c491171845e4402af4a9a00d4573628cae81ae9%2Fhosts_file_download.png?alt=media)
2. Click on **Actions** in the row and a desired Host and click on **File Add**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-59163a0dbdc5674ffdf4639219e46e10b6615324%2Ffile_add_linha_host.png?alt=media)
3. To execute the Action on several Hosts simultaneously, select the desired Hosts and click on **Actions** at the top of the page and click on **File Add**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-0be13ab35e61798a74ef02d7d266dbe79370fdfa%2Ffile_add_topo.png?alt=media)
4. Click on **File Type** and choose the **Managed** option.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-e553ff755bd5307532da5f9400ae84f62a33108a%2Ftype_managed.png?alt=media)
5. Click **Insert File** and choose the managed file you want to add to the Host.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-9410edd83f1aad8c6450690eb91f041c5869e0e3%2Finsert_file.png?alt=media)
6. Click **Yes** to start the *Action*.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-32012e8e4a0d4691da1eb2f6bfaea6344cf3d9f2%2Fbotao_yes.png?alt=media)
7. Click the **Queue Working** button at the top of the page to monitor the execution of the action.

**Note:** An Action will be created.
