### Configure Non-Root Sudo Access Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24identify%20CA%20IP Commands to create a user and configure passwordless sudo privileges for Linux migration automation. ```bash sudo adduser migrationuser ``` ```bash sudo visudo ``` ```bash migrationuser ALL=(ALL) NOPASSWD: ALL ``` ```bash Defaults requiretty ``` ```bash Defaults:migrationuser !requiretty ``` ```bash sudo -n whoami ``` -------------------------------- ### Create Non-Root User Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24add-new-source-without-credentials Command to create a new user on the source Linux server for migration purposes. ```bash sudo adduser migrationuser ``` -------------------------------- ### Configure Passwordless Sudo Access Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24migration Commands to edit the sudoers file and grant the migration user passwordless sudo privileges. ```bash sudo visudo migrationuser ALL=(ALL) NOPASSWD: ALL ``` -------------------------------- ### Validate Sudo Permissions Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24add-new-source-without-credentials Command to verify that the non-root user can execute commands as root without a password prompt. ```bash sudo -n whoami ``` -------------------------------- ### Access Credential Store URL Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24identify%20CA%20IP The URL pattern required to access the credential management interface on the migration appliance. ```text https://:8888/credentials_store ``` -------------------------------- ### Grant Passwordless Sudo Access Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24add-new-source-without-credentials Configuration line to add to the sudoers file to allow passwordless execution of commands. ```text migrationuser ALL=(ALL) NOPASSWD: ALL ``` -------------------------------- ### Disable requiretty for User Source: https://docs.rivermeadow.com/store-source-credentials-on-cloud-appliance%24add-new-source-without-credentials Configuration line to disable TTY requirements for a specific user in the sudoers file. ```text Defaults:migrationuser !requiretty ``` -------------------------------- ### AWS Resource Name (ARN) Format Source: https://docs.rivermeadow.com/aws-create-role%24aws-cloudformation-template-nbsp The standard structure for an Amazon Resource Name used to identify resources within AWS. ```text arn:partition:service:region:account:resource ``` -------------------------------- ### AWS IAM Policy JSON Source: https://docs.rivermeadow.com/create-aws-role-manually%24create-policy JSON configuration for the IAM policy required by RiverMeadow to manage EC2 instances and IAM roles. ```json { "Version": "2012-10-17", "Statement": [ { "Action": "ec2:*", "Resource": "arn:aws:ec2:*:*:*", "Effect": "Allow" }, { "Action": [ "ec2:Describe*", "ec2:CreateSecurityGroup", "ec2:ModifyInstanceAttribute", "ec2:CreateTags", "ec2:CreateVolume", "ec2:AttachVolume", "ec2:DetachVolume", "ec2:DeleteVolume", "ec2:CreateImage", "ec2:TerminateInstances", "ec2:StartInstances", "ec2:StopInstances", "ec2:RunInstances", "iam:ListInstanceProfiles" ], "Resource": "*", "Effect": "Allow" }, { "Action": "iam:PassRole", "Resource": "*", "Effect": "Allow" } ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.