__user groups parameter #291

Closed
opened 2021-11-20 15:23:32 +00:00 by ungleich-gitea · 4 comments

Created by: jpease

On OS X 10.8.2, trying to run:
__user foo --groups sudo

The result is:
awk: illegal field $(), name "field"

Error is originating in __user/gencode-remote
current_value="$(awk -F: '{ print $ENVIRON["field"] }' < "$file")"

Specifically it is choking on the optional parameter --groups

*Created by: jpease* On OS X 10.8.2, trying to run: __user foo --groups sudo The result is: awk: illegal field $(), name "field" Error is originating in __user/gencode-remote current_value="$(awk -F: '{ print $ENVIRON["field"] }' < "$file")" Specifically it is choking on the optional parameter --groups
ungleich-gitea added the
bugfix
feature
labels 2021-11-20 15:23:32 +00:00
Author
Owner

Created by: jpease

Sorry about the slow response time. Looks good. Thank you.

*Created by: jpease* Sorry about the slow response time. Looks good. Thank you.
Author
Owner

Created by: telmich

Hello,

the __user_groups type has been included in the master tree - do you want to give it a try and some feedback?

*Created by: telmich* Hello, the __user_groups type has been included in the master tree - do you want to give it a try and some feedback?
Author
Owner

Created by: jpease

However implemented, I like the idea of being able to re-run cdist to adjust group membership after initial user creation.

*Created by: jpease* However implemented, I like the idea of being able to re-run cdist to adjust group membership after initial user creation.
Author
Owner

Created by: telmich

Well, it looks like you spotted something we have documented, but not implemented so far :-)

We are currently discussing whether to implement it in __user or to create a new type, so you can easily add more groups to a user.

*Created by: telmich* Well, it looks like you spotted something we have documented, but not implemented so far :-) We are currently discussing whether to implement it in __user or to create a new type, so you can easily add more groups to a user.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#291
No description provided.