=== chris14_ is now known as chris14 | ||
=== JanC_ is now known as JanC | ||
OutOfService | Hi | 13:02 |
---|---|---|
OutOfService | Do you think it's possible to enable and put a password for root user using autoinstall? | 13:02 |
OutOfService | I tried using root in identity, but it didn't seem to work | 13:03 |
minimal | OutOfService: in "normal" cloud-init this could be done by specifying "chpasswd:\n users:\n - name: root\n password: <hashed value>\n" | 13:40 |
minimal | 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:41 |
OutOfService | 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 |
OutOfService | chpasswd: | 13:58 |
OutOfService | list: | | 13:58 |
OutOfService | root: $6$AlkVm7ZhPDSdExe6$aySDYQBYjSwg7cxPEEbE.LyECBmB94GjG1gk7NkdDxfMDQRHatoecCxoK0r7LKzkOuE2NHTNxQVgZ11OhkU.e1 | 13:58 |
OutOfService | oloco: $6$AlkVm7ZhPDSdExe6$aySDYQBYjSwg7cxPEEbE.LyECBmB94GjG1gk7NkdDxfMDQRHatoecCxoK0r7LKzkOuE2NHTNxQVgZ11OhkU.e1 | 13:58 |
OutOfService | test3: $6$AlkVm7ZhPDSdExe6$aySDYQBYjSwg7cxPEEbE.LyECBmB94GjG1gk7NkdDxfMDQRHatoecCxoK0r7LKzkOuE2NHTNxQVgZ11OhkU.e1 | 13:58 |
OutOfService | expire: False | 13:58 |
OutOfService | ssh_pwauth: True | 13:58 |
OutOfService | Sorry, I don't know if that are too many lines.. | 13:59 |
OutOfService | My problem is that I cannot login not via ssh, nor diectly with any of these usernames | 14:00 |
OutOfService | I also tried using both '' for the passwd | 14:00 |
OutOfService | for a clearer view: https://pastebin.com/MgMnNMMx | 14:02 |
minimal | why have you specified root password in BOTH chpasswd section and users section? | 14:13 |
OutOfService | because it was not working, so I tried in all the ways :) | 14:14 |
OutOfService | I don't know which is the best way I should use | 14:14 |
minimal | why have you quoted passwords? | 14:14 |
OutOfService | same answer hehe I was not wotking without it, and I tried with | 14:15 |
minimal | have you read the cloud-init docs for these modules? they don't mention quoting and their examples don't use it | 14:15 |
OutOfService | yes I did | 14:16 |
OutOfService | https://cloudinit.readthedocs.io/en/latest/reference/modules.html | 14:16 |
minimal | chpasswd list is deprecated (as of cloud-init 22.2) as mentioned in the docs | 14:19 |
OutOfService | ?ve just tried again, and the only user taht works seems to be test | 14:19 |
OutOfService | not root nor test3, or oloco | 14:19 |
OutOfService | oh. I didn't realize of tah | 14:20 |
OutOfService | I'll have a look to the current way | 14:20 |
OutOfService | and try again | 14:20 |
OutOfService | thanks for telling me | 14:20 |
OutOfService | 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:33 |
OutOfService | I can't undertans why all this is taking me so much time to actually undertand... | 14:34 |
minimal | no chpasswd is not used to create users | 14:34 |
minimal | did you careful read the docs for it? | 14:35 |
OutOfService | it seems it wasn't so carefull. My english is poor and its difficult for me | 14:36 |
OutOfService | As I can now understand, it's used to change existing user's passwods | 14:36 |
OutOfService | right? | 14:36 |
minimal | yes, that is what the docs say | 14:36 |
OutOfService | and can't it be used with the users module? | 14:37 |
minimal | what? | 14:37 |
OutOfService | to assign or to change a password for a user | 14:37 |
minimal | why would you want to do that? | 14:37 |
minimal | did you carefully read the docs for the users module? | 14:38 |
OutOfService | 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:39 |
minimal | I asked you early about duplicated entries in your configuration... | 14:41 |
OutOfService | I did that because it wasn't working in one way, so I tried other one... | 14:42 |
OutOfService | 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 |
OutOfService | sorry, to root | 14:47 |
minimal | isn't that what you already had in the configuration you showed? | 15:13 |
=== patrick_ is now known as patrick | ||
=== JanC_ is now known as JanC |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!