Bug #14732
closedTechnique "SSH authorized keys" creates home directory with perms root:root when it does not exists yet
Description
When using sshKeyDistribution with a home directory not set (but user existing), it create home directory with perms 700:root:root, but.ssh and authorized_keys have correct permissions
It should create the home with correct permissions
Updated by Nicolas CHARLES over 5 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES over 5 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Alexis Mousset
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1430
Updated by Rudder Quality Assistant over 5 years ago
- Assignee changed from Alexis Mousset to Nicolas CHARLES
Updated by Nicolas CHARLES over 5 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|9df3d1b05d0a7998553f5ec8eebaee0f89c34c59.
Updated by Vincent MEMBRÉ over 5 years ago
- Subject changed from sshKeyDistribution creates home directory with perms root:root when it does not exists yet to Technique "SSH authorized keys" creates home directory with perms root:root when it does not exists yet
Updated by Vincent MEMBRÉ over 5 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 4.1.22, 4.3.12 and 5.0.10 which were released today.
Updated by Nicolas Ecarnot about 4 years ago
Hello,
I'm just realizing I'm facing this same bug with :- rudder agent version
Rudder agent 6.1.6.release
I removed /home/my_user, then ran rudder agent run -u, and the /home/my_user directory, as well as the underlying .ssh directory was owned by root:root
The authorized_keys owner and group are correct though.
Updated by Nicolas Ecarnot about 4 years ago
- Severity set to Major - prevents use of part of Rudder | no simple workaround
Hello,
This bug prevents the success of next steps in the setup of an account, so could one re-open this issue please?
Updated by Nicolas CHARLES about 4 years ago
Hi Nicolas. Which version of the technique are you using ?
Also, techniques used to not be automatically updated at Rudder upgrade. Is it a fresh install, or an upgrade from a Rudder before 6.0 ? Is the later, you'll need to run
rudder server upgrade-techniques -o
to force upgrading your techniques
Updated by Nicolas CHARLES about 4 years ago
If you are using technique version 4.0, it should have been fixed in https://issues.rudder.io/issues/14733
Updated by Nicolas Ecarnot about 4 years ago
Nicolas CHARLES wrote in #note-11:
If you are using technique version 4.0, it should have been fixed in https://issues.rudder.io/issues/14733
Yes sir, I second that :)