Re: [arch-general] [arch-dev-public] systemd 215 group names
On Tue, Jul 8, 2014 at 6:06 PM, Dave Reisner <d@falconindy.com> wrote:
Hi,
If you're a [testing] user who's installed systemd 215 with a pkgrel of 1-3, you're interested in this.
A new feature of systemd, sysusers, was introduced which creates users/groups on demand for stateless systems. The upstream files ship the groups 'dialout', 'tape', and 'cdrom'. With systemd-215-4, these are properly modified to Arch's 'uucp', 'storage', and 'optical', respectively.
If you installed a prior version, you likely now have these former groups in your /etc/group -- these can be safely deleted, as we will not currently use them. In other words, you can safely run:
sed -i.bkup '/^\(dialout\|tape\|cdrom\):x:/d' /etc/group
Make sure to diff the result against /etc/group.bkup afterwards and delete the backup if not needed.
Cheers, Dave
Answering on arch-general as I can't post to arch-dev-public. Because, while we're at it... I'm not very proud to add, don't use sudo while moving around /etc/group. I'm currently travelling and more or less only have this machine to work with. As I haven't memorized any systemd boot flags, some time later I finally found a way to get back up and running by setting "init=/bin/bash"... So, really, don't use sudo for /etc/{passwd,shadow,group,gshadow}. cheers! mar77i
On Wed, Jul 9, 2014 at 6:22 PM, Martti Kühne <mysatyre@gmail.com> wrote:
So, really, don't use sudo for /etc/{passwd,shadow,group,gshadow}.
cheers! mar77i
I don't understand what you mean. Should I log in as root then? What exactly went wrong and what exactly do you mean by 'moving'?
[2014-07-09 19:22:55 +0300] Martti Kühne:
I'm currently travelling and more or less only have this machine to work with.
Upgrading while travelling has never been the brightest idea. Couldn't you wait till you get back home for that? -- Gaetan
On Wed, Jul 9, 2014 at 7:43 PM, Karol Blazewicz <karol.blazewicz@gmail.com> wrote:
I don't understand what you mean. Should I log in as root then? What exactly went wrong and what exactly do you mean by 'moving'?
Open a shell so you maintain privileges between actions. If there's no group file, sudo will fail trying to auth you based on group membership. On Wed, Jul 9, 2014 at 7:45 PM, Gaetan Bisson <bisson@archlinux.org> wrote:
Upgrading while travelling has never been the brightest idea.
Couldn't you wait till you get back home for that?
Nah. It were interesting minutes, so I'd do this again. Thanks to a certain RedHat developper, setting init= explicitly has its own good feel. :-) cheers! mar77i
participants (3)
-
Gaetan Bisson
-
Karol Blazewicz
-
Martti Kühne