You are not logged in.

#1 2021-11-17 10:15:06

DireWolf
Member
Registered: 2021-04-15
Posts: 28

[SOLVED] Can't get sudo access using cloud-init on arch cloudimg

Hi All,
I am trying to use a arch-linux qcow2 image from here https://gitlab.archlinux.org/archlinux/ … 9279.qcow2

And I am using the following cloud-init,
```
#cloud-config
users:
  - name: zarkov
    sudo: ["ALL=(ALL) NOPASSWD:ALL"]
    groups: users, admin
    ssh_authorized_keys:
      - ssh-rsa <...>
chpasswd:
  list: |
     zarkov:asdfqwer
  expire: False
```
and generating the iso with cloud-localsd

the user gets created and I can login thru tty n ssh but I can't get sudo access it says I am not in the sudoers file...

How do I troubleshoot this and what could I be doing wrong?

Any help would be appreciated!

Last edited by DireWolf (2021-11-17 12:01:38)

Offline

#2 2021-11-17 12:01:11

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED] Can't get sudo access using cloud-init on arch cloudimg

I am such an  neutral
It appears now, that cloud-init just runs on the first boot so after editing the cloud-init.iso it wasn't running the scripts at all.
After doing the cloud-init on a new fresh image it works smoothly.

Moderators please close this. Marking as solved
Thanks to myself.

Offline

Board footer

Powered by FluxBB