=== chris14_ is now known as chris14 === JanC_ is now known as JanC [13:02] Hi [13:02] Do you think it's possible to enable and put a password for root user using autoinstall? [13:03] I tried using root in identity, but it didn't seem to work [13:40] OutOfService: in "normal" cloud-init this could be done by specifying "chpasswd:\n users:\n - name: root\n password: \n" [13:41] if you put that inside a user-data subsection of autoinstall data then I assume it would be actioned by cloud-init on 1st boot of the installed system [13:58] thanks for your answer minimal. I alredy tried that, but maybe it's wrong the way I did. I passed ok the cloud-init schema config-file tool, and everything seemed to be ok. These are the lines regarding it: [13:58] chpasswd: [13:58] list: | [13:58] root: $6$AlkVm7ZhPDSdExe6$aySDYQBYjSwg7cxPEEbE.LyECBmB94GjG1gk7NkdDxfMDQRHatoecCxoK0r7LKzkOuE2NHTNxQVgZ11OhkU.e1 [13:58] oloco: $6$AlkVm7ZhPDSdExe6$aySDYQBYjSwg7cxPEEbE.LyECBmB94GjG1gk7NkdDxfMDQRHatoecCxoK0r7LKzkOuE2NHTNxQVgZ11OhkU.e1 [13:58] test3: $6$AlkVm7ZhPDSdExe6$aySDYQBYjSwg7cxPEEbE.LyECBmB94GjG1gk7NkdDxfMDQRHatoecCxoK0r7LKzkOuE2NHTNxQVgZ11OhkU.e1 [13:58] expire: False [13:58] ssh_pwauth: True [13:59] Sorry, I don't know if that are too many lines.. [14:00] My problem is that I cannot login not via ssh, nor diectly with any of these usernames [14:00] I also tried using both '' for the passwd [14:02] for a clearer view: https://pastebin.com/MgMnNMMx [14:13] why have you specified root password in BOTH chpasswd section and users section? [14:14] because it was not working, so I tried in all the ways :) [14:14] I don't know which is the best way I should use [14:14] why have you quoted passwords? [14:15] same answer hehe I was not wotking without it, and I tried with [14:15] have you read the cloud-init docs for these modules? they don't mention quoting and their examples don't use it [14:16] yes I did [14:16] https://cloudinit.readthedocs.io/en/latest/reference/modules.html [14:19] chpasswd list is deprecated (as of cloud-init 22.2) as mentioned in the docs [14:19] ?ve just tried again, and the only user taht works seems to be test [14:19] not root nor test3, or oloco [14:20] oh. I didn't realize of tah [14:20] I'll have a look to the current way [14:20] and try again [14:20] thanks for telling me [14:33] It's a little confising for me: I can usechpasswd in order to create users, but I cannot tell it the shell to use, nor the groups.... So, is it the best practice to use the user module? [14:34] I can't undertans why all this is taking me so much time to actually undertand... [14:34] no chpasswd is not used to create users [14:35] did you careful read the docs for it? [14:36] it seems it wasn't so carefull. My english is poor and its difficult for me [14:36] As I can now understand, it's used to change existing user's passwods [14:36] right? [14:36] yes, that is what the docs say [14:37] and can't it be used with the users module? [14:37] what? [14:37] to assign or to change a password for a user [14:37] why would you want to do that? [14:38] did you carefully read the docs for the users module? [14:39] minimal, I tried to read the most carefully I could. I've spent more than two days trying to configure it, but its obvious it's being difficult for me to undertand all the things [14:41] I asked you early about duplicated entries in your configuration... [14:42] I did that because it wasn't working in one way, so I tried other one... [14:47] I hope this is also not a studip question, but... can I use the users module in order to assign a password to it? [14:47] sorry, to root [15:13] isn't that what you already had in the configuration you showed? === patrick_ is now known as patrick === JanC_ is now known as JanC