Page MenuHomeLubuntu Development

GID/UID mismatch for users.
Closed, ResolvedPublic

Description

See this bug. Calamares version 3.2.35 or greater is needed and settings in calamares-settings-ubuntu need to change.
In the users.conf for the users module the sambashare user needs to look like the following:

defaultGroups:
    - adm
    - cdrom
    - dip
    - lpadmin
    - plugdev
    - name: sambashare
      must_exist: false
      system: true
    - sudo

For reference on the users.conf refer to the Calamares example

Related Objects

StatusAssignedTask
OpenNone
Resolvedkc2bez

Event Timeline

kc2bez triaged this task as Normal priority.Dec 24 2020, 11:32 PM
kc2bez created this task.

Here's a potential fix for already installed systems.

This change is in proposed now for new installs.

Hirsute install on d755-8 shows $UID and $GROUPS both containing 1000
A quick look in /etc/shadow & /etc/passwd and I see reference to 1000/1001 gone, now only 1000

This should be taken care of on the installer side of things now. The only question that remains is what do we do about existing installs? I think @wxl 's fix is probably sufficient for the number of support cases this is likely to have. It is a bit of an edge case to have. You would need to be mounting files from an install. Maybe we just backpocket that as documentation and point folks towards it if/when they bump into it?

I think it's wise to document it somewhere and Discourse is as good as any. However, I think my little solution needs a more organized format if we were to use for the purposes of documentation. I guess I can probably edit that post and we can call it good.

One comment, though: I do think this is something that should be able to be done in situ. Do you have good reason to think otherwise @kc2bez ?

In T181#4022, @wxl wrote:

I think it's wise to document it somewhere and Discourse is as good as any. However, I think my little solution needs a more organized format if we were to use for the purposes of documentation. I guess I can probably edit that post and we can call it good.

One comment, though: I do think this is something that should be able to be done in situ. Do you have good reason to think otherwise @kc2bez ?

No, I think we are on the same page there. I was thinking the same.

The only reason I said that is because you said "you would need to be mounting files from an install."

Anywho, @guiverc proved my point that the original post was poorly organized, so I fixed that last night. We should be good to go to just reference people towards that.

That said, we're good. Thanks!