Hello Richard and thanks for this bug report. You are right: the
samba.postinst script adds all the users in the 'admin' group to the
'sambashare' group:
for USER in `getent group admin | cut -f4 -d:`; do
adduser "$USER" sambashare \
|| ! getent passwd "$USER" >/dev/null
done
The interesting thing is that I had a look in some Ubuntu systems I have
access to and there's no 'admin' group at all. I think the 'admin' group
is a legacy thing: the Ubuntu 12.04 release notes [1] report that:
Up until Ubuntu 11.10, administrator access using the
sudo tool was granted via the "admin" Unix group. In
Ubuntu 12.04, administrator access will be granted
via the "sudo" group.
So in the older Ubuntu releases the 'admin' did always exist as a local
group.
The obvious fix here is to have the postinst script add users from the
'sudo' group instead, however I'm not sure I really like this idea.
We'll again hardcode a group name in the postinst, and as apparently
nobody noticed that the "auto-add admin/sudo users to sambashare"
mechanism was broken in all these years, maybe it's not really worth
having it in the first place. Not having it will also make Ubuntu's
samba behave like Debian in this respect.
This is worth some more discussion.
[1]
https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop#PrecisePangolin.2FReleaseNotes.2FCommonInfrastructure.Common_Infrastructure
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942195
Title:
Installing Samba unexpectedly adds many unknown local users to
sambashare group
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1942195/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs