Skip to content

Adding the azure-user and doas issue / segmentation fault #11

@Keithsc

Description

@Keithsc

I need some advice on how to use cloud-agent on Azure as my /etc/doas.conf file is changing and I am unsure what the correct procedure is for "pre adding users" to my VM.

I have a local virtualbox VM running a clean install of OpenBSD 6.7 where I install the package cloud-agent and I do the following.

  1. Add my user "keith".
    2 Add myself to the Wheel group

  2. Append my public key to /home/keith/.ssh/authorised_keys

  3. Create /etc/doas.conf and add.
    permit nopass :wheel

  4. Create /etc/hostname.hvn0 and add.

dhcp
!/usr/local/libexec/cloud-agent "$if"

I then upload my vhd file to Azure and create and start a new VM, I am then able to ssh into the VM using my user keith and my private key, But I see there's a new user azure-user and the /etc/doas.conf file has changed so that I am unable to run doas as user keith.

permit keepenv nopass azure-user as root
permit keepenv nopass root

I am not sure if I should create the azure-user before I upload the image to azure, I tried using "-U keith" to the cloud-agent command but the azure-user was still created somehome and if I try running cloud-agent directly I get a segmenttion fault ?

/usr/local/libexec/cloud-agent -c azure -v hvn0

trycloud: azure
main: azure
Segmentation fault (core dumped)

Hope this makes sense
Keith.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions