Hi
I was running upgrades from the omv web interface when I couldn't apply changes to SSH. It throws an error which seems to be caused by a particular setup that I have.
The setup that is likely the root cause is: I have one user on the server that has an alias; this alias is simply another user but assigned to the same UID. This was necessary for an integration I'm running that required the username to follow a certain format and I needed that user to be the same as the existing one on the server.
So to summarize, if I do a cat /etc/passwd this is what I get:
Same UID & GID, same home
Now that this is established, the error I'm getting during the omv-salt deploy run ssh is
----------
ID: create_ssh_authorized_key_file_user2
Function: file.managed
Name: /var/lib/openmediavault/ssh/authorized_keys/user2
Result: False
Comment: Failed to change user to user2
Started: 14:15:39.919138
Duration: 2.171 ms
Changes:
----------
diff:
New file
----------
Alles anzeigen
The file is created but it appears to be owned by user1 and not user2. This in fact doesn't matter as they are effectively the same (same UID), but the check that is implemented in that stage fails.
The issue is now that I can't connect with SSH using user1 but I can with user2:
ssh user1@myhost
ssh user2@myhost
- Is there a way to either skip the application of the configuration to user2 ?
- Force the completion of the upgrade regardless of this stage failing ?
- Fix the check of "change user" to check for the UID instead of the username ?
Thanks