LabNSSFiles

pydantic model controller.config.LabNSSFiles

Rules for /etc/passwd and /etc/group inside the lab.

Parameters:

data (Any)

Show JSON schema
{
   "title": "LabNSSFiles",
   "description": "Rules for :file:`/etc/passwd` and :file:`/etc/group` inside the lab.",
   "type": "object",
   "properties": {
      "basePasswd": {
         "default": "root:x:0:0:root:/root:/bin/bash\n",
         "description": "These contents will be copied verbatim to ``/etc/passwd`` inside the lab, and then an entry for the user will be appended",
         "examples": [
            "root:x:0:0:root:/root:/bin/bash\n"
         ],
         "title": "Base contents of ``/etc/passwd``",
         "type": "string"
      },
      "baseGroup": {
         "default": "root:x:0\n",
         "description": "These contents will be copied verbatim to ``/etc/group`` inside the lab, and then entries for the user's groups will be appended",
         "examples": [
            "root:x:0\n"
         ],
         "title": "Base contents of ``/etc/group``",
         "type": "string"
      }
   },
   "additionalProperties": false
}

Fields:
field baseGroup: str = 'root:x:0\n' (name 'base_group')

These contents will be copied verbatim to /etc/group inside the lab, and then entries for the user’s groups will be appended

field basePasswd: str = 'root:x:0:0:root:/root:/bin/bash\n' (name 'base_passwd')

These contents will be copied verbatim to /etc/passwd inside the lab, and then an entry for the user will be appended